v0.0.2-alpha.1 #4
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 | |
on: | |
release: | |
types: [released] | |
permissions: | |
contents: write # for github pages | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Install packages, compile SDK, and build docs | |
run: | | |
pnpm i | |
pnpm build | |
pnpm gen-docs | |
- name: Deploy Docs to Github Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docs | |
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | |
run: pnpm audit signatures | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: pnpm publish --access public --no-git-checks |