Skip to content

Commit 029f1cb

Browse files
authored
ci: simplify
1 parent 4589b03 commit 029f1cb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish_npm.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v2
16-
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: '18.x'
19+
registry-url: 'https://registry.npmjs.org'
1720
- name: Setup
1821
run: npm install
19-
2022
- name: Publish All Templates
2123
env:
22-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
2325
run: |
24-
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
2526
# run publish in every package, ignore failures (ie no publish required if the version is already published)
2627
npm run prepare-templates
2728
npx lerna exec --no-bail --stream --concurrency 1 -- "npm publish || true"

0 commit comments

Comments
 (0)