Skip to content

Merge pull request #303 from thefrontside/cl/retag #158

Merge pull request #303 from thefrontside/cl/retag

Merge pull request #303 from thefrontside/cl/retag #158

Workflow file for this run

name: Publish
on:
push:
tags:
- "@interactors/*-v*"
permissions:
id-token: write
contents: read
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 }}