File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Release
22
33on :
44 workflow_dispatch :
5+ push :
6+ branches :
7+ - 09-17-chore_fix_npm_publish
58
69jobs :
710 build-rust :
@@ -112,11 +115,19 @@ jobs:
112115 sed -i 's/"version": "0.0.0"/"version": "0.0.0-${{ github.sha }}"/' packages/global/package.json
113116 sed -i 's/"version": "0.0.0"/"version": "0.0.0-${{ github.sha }}"/' packages/cli/package.json
114117
118+ - name : Setup Node.js and Authenticate
119+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
120+ with :
121+ node-version-file : " .node-version"
122+ # This tells setup-node which registry you want to log in to
123+ registry-url : " https://npm.pkg.github.com"
124+ # If your packages are scoped (e.g., @your-org/your-package), add this
125+ scope : " @voidzero-dev"
126+
115127 - name : Publish
116128 run : |
117- echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> ${NPM_CONFIG_USERCONFIG}
118- echo "@voidzero-dev:registry=https://npm.pkg.github.com/" >> ${NPM_CONFIG_USERCONFIG}
129+ pnpm whoami --registry https://npm.pkg.github.com
119130 pnpm publish --filter=./packages/global --registry https://npm.pkg.github.com --no-git-checks
120131 pnpm publish --filter=./packages/cli --registry https://npm.pkg.github.com --no-git-checks
121132 env :
122- NPM_TOKEN : ${{ secrets.GITHUB_TOKEN }}
133+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments