Skip to content

v0.0.3

v0.0.3 #6

Workflow file for this run

name: Release
on:
release:
types: [released]
permissions:
packages: write
contents: write
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 codegen
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
- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@valorem-labs-inc'
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm ci:release
- name: Setup .npmrc for publishing to github packages
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@valorem-labs-inc'
# Runs changeset version to see if pkg v needs bumped
# () || true prevents exit code 1 when there is no v bump needed
- name: Publish to Github Packages
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm ci:release