Skip to content

Canary release

Canary release #12

Workflow file for this run

name: Canary release
on: workflow_dispatch
jobs:
canary-publish:
name: Publish Packages (canary)
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
cache: "yarn"
cache-dependency-path: "js/yarn.lock"
- name: Install Dependencies
working-directory: ./js
run: yarn --frozen-lockfile
- name: Build
working-directory: ./js
run: yarn build
- name: Update version
working-directory: ./js
run: yarn version --new-version "0.0.0-${GITHUB_SHA::8}" --no-git-tag-version
- name: Publish
working-directory: ./js
run: npm publish --access public --tag canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}