From 835b77dfdf66c0a0bad900ba11567baeb5d2b870 Mon Sep 17 00:00:00 2001 From: Sebastian Podjasek Date: Mon, 22 Jan 2024 19:32:31 +0100 Subject: [PATCH] Update Node.js version and package manager in GitHub Actions workflow --- .github/workflows/npm-publish.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7483bb9..dfa675a 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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 @@ -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