mirror of
https://github.com/0xbow-io/privacy-pools-core.git
synced 2026-01-09 17:37:58 -05:00
fix: sdk release task (#71)
This commit is contained in:
48
.github/workflows/sdk-canary.yml
vendored
48
.github/workflows/sdk-canary.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user