From 99d172179e25d6d7d8c637c25c7d6d3e8af38768 Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Sun, 26 Jun 2022 13:20:15 +0200 Subject: [PATCH] update workflow --- .github/workflows/publish.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2f0ad72..ba01ee6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,29 +2,25 @@ name: Publish on: release: - types: [created] + types: [published] jobs: - publish-npm: + publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm publish --access public + - name: Publish to npmjs + run: npm publish --tag latest --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - - publish-gpr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: - node-version: 12 registry-url: https://npm.pkg.github.com/ - - run: npm publish --access public + - name: Publish to GPR + run: npm publish --tag latest --access public env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}