From b4197e99606dad2b098e2364643a311723b0b065 Mon Sep 17 00:00:00 2001 From: Joel Bernerman Date: Fri, 3 Sep 2021 13:30:51 +0200 Subject: [PATCH] Added access key again --- .github/workflows/npm-publish-and-release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/npm-publish-and-release.yml b/.github/workflows/npm-publish-and-release.yml index 303ae27f5..7a1675394 100644 --- a/.github/workflows/npm-publish-and-release.yml +++ b/.github/workflows/npm-publish-and-release.yml @@ -38,6 +38,11 @@ jobs: github_token: ${{ secrets.HBG_GH_TOKEN }} tags: true + - name: Inject access token in .npmrc + run: | + echo "registry=https://npm.pkg.github.com/helsingborg-stad" >> ~/.npmrc + echo "//npm.pkg.github.com/:_authToken=${{ secrets.HBG_GH_TOKEN }}" >> ~/.npmrc + - name: NPM Publish. run: npm publish @@ -48,6 +53,9 @@ jobs: - name: Run build for full release package. run: php ./build.php --cleanup + - name: Cleanup .npmrc + run: rm ~/.npmrc + - name: Archive full release package uses: thedoctor0/zip-release@master with: