Skip to content

Commit b5728e6

Browse files
committed
.
1 parent eb581db commit b5728e6

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

.github/workflows/go-releaser.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,33 @@ jobs:
1818
needs: update
1919
runs-on: ubuntu-latest
2020

21+
permissions:
22+
contents: read
23+
packages: write
24+
2125
steps:
22-
- uses: actions/checkout@v4
26+
- name: Checkout repository
27+
uses: actions/checkout@v5
28+
29+
- name: Setup node
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: "24.x"
33+
registry-url: "https://npm.pkg.github.com"
2334

2435
- name: Download build artifacts
2536
uses: actions/download-artifact@v4
2637
with:
2738
name: go-binaries
2839
path: dist
2940

30-
- name: Setup node
31-
uses: actions/setup-node@v6
32-
with:
33-
registry-url: https://registry.npmjs.org
34-
3541
- name: Publish npm package
3642
run: |
3743
cp -r dist/* npm/bin/
3844
cp README.md npm/
3945
cp LICENSE npm/
4046
cd npm/
4147
npm version ${{ github.event.release.tag_name }} --no-git-tag-version
42-
npm publish --access public
48+
npm publish
49+
env:
50+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

npm/bin/goplater.js

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env node
12
const { execFileSync } = require("child_process")
23
const fs = require("fs")
34
const path = require("path")

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@codeshelldev/goplater-linux-x64",
2+
"name": "@codeshelldev/goplater",
33
"version": "0.0.0",
44
"description": "",
55
"homepage": "https://github.com/codeshelldev/goplater#readme",

0 commit comments

Comments
 (0)