👷 Bypass tag filtering for the release pattern and conditionally run #155
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: tags | |
jobs: | |
publish-to-npm: | |
if: "startsWith(github.ref, 'refs/tags/@interactors')" | |
name: NPM ${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- uses: volta-cli/action@v4 | |
with: | |
registry-url: https://registry.npmjs.org | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Determine Package | |
id: pkg | |
run: deno task context-from-git-tag --gitTag ${{ github.ref }} | |
- name: Generate NPM Packages | |
run: deno task build:npm ${{ steps.pkg.outputs.working-directory }} | |
- name: Publish Releases | |
working-directory: ${{ steps.pkg.outputs.working-directory }}/build/npm | |
run: npm publish --provenance --access public | |
env: | |
GITHUB_TOKEN: ${{ secrets.FRONTSIDEJACK_GITHUB_TOKEN }} |