diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index be0b1c230..d7fb21464 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,18 +12,20 @@ jobs: if: contains(github.event.pull_request.labels.*.name, 'release') runs-on: ubuntu-latest env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Setup node - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: '14' - registry-url: 'https://registry.npmjs.org' + registry-url: 'https://registry.npmjs.org/' scope: '@vue-storefront' + - run: echo "registry=https://npm.pkg.github.com/@vue-storefront" >> .npmrc + - name: Get cached dependencies uses: actions/cache@v2 with: @@ -41,7 +43,7 @@ jobs: - name: Publish Packages shell: bash - run: yarn publish:packages "${{ join(github.event.pull_request.labels.*.name, '|') }}" "$NODE_AUTH_TOKEN" + run: yarn publish:packages "${{ join(github.event.pull_request.labels.*.name, '|') }}" "$NPM_TOKEN" automerge: needs: publishing