fix: sdk release task (#71)

This commit is contained in:
moebius
2025-02-07 14:22:39 +01:00
committed by GitHub
parent c7cfbb658a
commit 7dc386cc18
2 changed files with 36 additions and 14 deletions

View File

@@ -1,24 +1,46 @@
name: SDK / Canary release
name: SDK / Canary Release
on: workflow_dispatch
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
defaults:
run:
working-directory: packages/sdk
jobs:
canary-publish:
name: Publish Packages (canary)
canary-release:
name: SDK Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Check out github repository
uses: actions/checkout@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- uses: docker://pandoc/core:2.6
fetch-depth: 1
- name: Use Node.js
uses: actions/setup-node@v4
with:
args: --output=README.md README.rst
- run: yarn
- run: yarn build
- run: yarn version --new-version "0.0.0-${GITHUB_SHA::8}" --no-git-tag-version
- run: npm publish --access public --tag canary
node-version: 20.x
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1
- name: Build SDK
run: |
yarn build
chmod +x ./scripts/copy_circuits.sh
bash ./scripts/copy_circuits.sh
working-directory: packages/sdk
- name: Set canary version
run: yarn version --new-version "0.0.0-${GITHUB_SHA::8}" --no-git-tag-version
- name: Publish canary
run: npm publish --access public --tag canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}