From 49867235d30047070d71404c34132a072f9f0686 Mon Sep 17 00:00:00 2001 From: MrSpoocy Date: Mon, 6 May 2024 09:13:37 +0200 Subject: [PATCH] try NPM registry --- .github/workflows/publish.yml | 13 +++++++------ .npmrc | 3 --- 2 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 .npmrc diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b2d2c1b..432aae2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish package to GitHub Packages +name: Publish package on: release: types: [published] @@ -9,16 +9,17 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v4 - # Setup .npmrc file to publish to GitHub Packages - - uses: actions/setup-node@v4 + - name: Checkout Code + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 with: node-version: '20.x' - registry-url: 'https://npm.pkg.github.com' + registry-url: 'https://registry.npmjs.org' scope: '@extendscript' - name: Install dependencies and build 🔧 run: npm ci && npm run build - name: Publish package on Github 📦 run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmrc b/.npmrc deleted file mode 100644 index e081d1c..0000000 --- a/.npmrc +++ /dev/null @@ -1,3 +0,0 @@ -//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} -@extendscript:registry=https://npm.pkg.github.com -always-auth=true