Release Snapshot #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Snapshot | |
on: | |
workflow_dispatch: | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release-snapshot: | |
name: Release Snapshot | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Sui CLI | |
uses: ./.github/actions/install-sui-cli | |
with: | |
sui-version: $(jq -r '.SUI_VERSION' version.json) | |
- name: Setup Node Dependencies | |
uses: ./.github/actions/install-node-dependencies | |
- name: Build TS and SUI modules | |
run: npm run build | |
- name: Set Snapshot Version | |
run: | | |
npm version 0.0.0-snapshot.$(git rev-parse --short HEAD) --git-tag-version=false | |
- name: Publish Snapshot to NPM | |
run: | | |
npm publish --no-git-checks --tag snapshot --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |