Skip to content

Commit

Permalink
Update Node.js version and package manager in GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SPodjasek committed Jan 22, 2024
1 parent f7992d2 commit 835b77d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: https://npm.pkg.github.com/
cache: 'yarn'
cache: 'npm'
- name: Register additional private repositories
run: |
echo "//npm.pkg.github.com/:_authToken=\${GPR_AUTH_TOKEN}" >> .npmrc
echo "@inway:registry=https://npm.pkg.github.com" >> .npmrc
- run: yarn install --frozen-lockfile
- run: yarn test
- run: yarn build
- run: yarn docs
- run: npm ci
- run: npm run build
- run: npm run test
- run: npm run docs
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload typedocs
Expand All @@ -55,20 +55,20 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: https://npm.pkg.github.com/
- name: Register additional private repositories
run: |
echo "//npm.pkg.github.com/:_authToken=\${GPR_AUTH_TOKEN}" >> .npmrc
echo "@inway:registry=https://npm.pkg.github.com" >> .npmrc
- run: yarn install --frozen-lockfile
- run: yarn build
- run: npm ci
- run: npm run build
- name: Publish to GPR
run: yarn publish
run: npm publish
continue-on-error: true
- name: Switch publishing to npmjs.org
run: |
echo "//registry.npmjs.org/:_authToken=\${NPM_AUTH_TOKEN}" >> .npmrc
echo "@inway:registry=https://registry.npmjs.org" >> .npmrc
- name: Publish to npmjs.org
run: yarn publish
run: npm publish

0 comments on commit 835b77d

Please sign in to comment.