Skip to content

👷 Bypass tag filtering for the release pattern and conditionally run #155

👷 Bypass tag filtering for the release pattern and conditionally run

👷 Bypass tag filtering for the release pattern and conditionally run #155

Workflow file for this run

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 }}