From 5701c9eb50ff636946cb813d899d0d7c40017bf1 Mon Sep 17 00:00:00 2001 From: Jeffrey Horton Date: Fri, 28 Jun 2024 12:00:23 +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 ++++---- package.json | 2 +- 3 files changed, 8 insertions(+), 6 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", diff --git a/package.json b/package.json index f7b1c34..ccf97cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ukhomeoffice/asl-eslint-common", - "version": "2.0.0", + "version": "2.1.0", "description": "eslint configuration, extended out to asl code base.", "main": "index.js", "scripts": {