From c9aa47fc0c798a5c72c988de4768f27370b57b08 Mon Sep 17 00:00:00 2001 From: Jeffrey Horton Date: Fri, 28 Jun 2024 11:58:01 +0100 Subject: [PATCH] Use built-in github token for auth https://docs.github.com/en/actions/security-guides/automatic-token-authentication --- .github/workflows/npm-publish-github-packages.yml | 4 +++- package-lock.json | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index d401d4d..0d30fae 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -29,8 +29,10 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 20 + cache: 'npm' registry-url: https://npm.pkg.github.com/ + scope: '@ukhomeoffice' - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.GH_AUTH_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/package-lock.json b/package-lock.json index 7f846df..8b188be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "asl-eslint-common", - "version": "1.0.0", + "name": "@ukhomeoffice/asl-eslint-common", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "asl-eslint-common", - "version": "1.0.0", + "name": "@ukhomeoffice/asl-eslint-common", + "version": "2.0.0", "license": "MIT", "dependencies": { "eslint-config-semistandard": "^11.0.0",