From ce49615ccb33978ae7d1a0f8f631e55b29791420 Mon Sep 17 00:00:00 2001 From: Joey Date: Wed, 27 Nov 2024 10:38:56 +0100 Subject: [PATCH] feat: update publish-npm.yml --- .github/workflows/publish-npm.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 7d21102..e8b04ec 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -13,12 +13,12 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setting up Node Environment for NPM - uses: actions/setup-node@v1 + - name: Setup Node.js Environment + uses: actions/setup-node@v2 with: - node-version: "10.x" + node-version: '16.x' registry-url: "https://registry.npmjs.org" - + - name: Install Dependencies run: npm ci @@ -27,14 +27,10 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Setting up Node Environment for GitHub Package Registry - uses: actions/setup-node@v1 - with: - node-version: "10.x" - registry-url: "https://npm.pkg.github.com" - scope: "@equinor" - - - name: Publish to GitHub Registry + - name: Switch to GitHub Package Registry + run: npm config set registry "https://npm.pkg.github.com" + + - name: Publish to GitHub Package Registry run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file