File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 55 types : [published]
66
77permissions :
8- id-token : write
98 contents : read
109
1110jobs :
@@ -17,13 +16,14 @@ jobs:
1716
1817 - uses : actions/setup-node@v4
1918 with :
20- node-version : " 22 "
19+ node-version : " 20 "
2120 registry-url : " https://registry.npmjs.org"
2221
2322 - name : Update npm to latest
2423 run : npm install -g npm@latest
2524
26- - name : Install pnpm for publint
25+ # Install pnpm so publint can pack
26+ - name : Install pnpm (required by publint)
2727 run :
npm install -g [email protected] 2828
2929 - name : Extract version from release tag
4242 - name : Build package
4343 run : npm run build --if-present
4444
45- # - name: Run tests
46- # run: npm test --if-present
45+ - name : Run tests
46+ run : npm test --if-present
4747
48- - name : Publish to npm (Trusted Publishing )
48+ - name : Publish to npm (token auth )
4949 run : npm publish --access public
50+ env :
51+ NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
You can’t perform that action at this time.
0 commit comments