name: packwatch release on: push: tags: - 'v*' jobs: release: name: Release runs-on: ubuntu-latest needs: [build, lint, test] steps: - name: Checkout uses: actions/checkout@v4 - name: Node setup uses: actions/setup-node@v3 with: node-version: 14 - name: Prepare run: yarn && yarn build - name: get tag id: get_tag run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v} - name: Release env: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: yarn publish --access public --tag latest --new-version ${{steps.get_tag.outputs.tag}}