From 56406412fa43d56d19a75f9e69589ecd7153ccb7 Mon Sep 17 00:00:00 2001 From: Rickard von Haugwitz <44768499+rickardvh@users.noreply.github.com> Date: Fri, 29 Jan 2021 09:18:10 +0100 Subject: [PATCH] chore(publish): add npm registry publish task --- .github/workflows/publish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a16615f..ee57f7e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,9 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 with: - node-version: '12.x' + node-version: '14.x' registry-url: 'https://npm.pkg.github.com' scope: '@hogiagroup' - run: npm ci @@ -21,3 +22,11 @@ jobs: - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - uses: actions/setup-node@v1 + with: + node-version: '14.x' + registry-url: 'https://registry.npmjs.org' + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}