Release #17
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: | |
packages: write | |
contents: write | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
env: | |
GHP_PAT: ${{ secrets.GHP_PAT }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup .npmrc for pulling/publishing from/to github packages | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@valorem-labs-inc' | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Install packages, compile SDK, and build docs | |
run: | | |
pnpm ci:preinstall | |
pnpm i | |
pnpm generate | |
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: Publish to Github Packages | |
run: pnpm ci:release | |
- name: Unset GHP scope, set NPM scope (setup-node workaround https://github.com/actions/setup-node/issues/763) | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
pnpm config delete @valorem-labs-inc:registry --location project | |
pnpm config set @valorem-labs-inc:registry 'https://registry.npmjs.org' --location project | |
pnpm config set //registry.npmjs.org/:_authToken '${NODE_AUTH_TOKEN}' --location project | |
- name: Publish to NPM | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
pnpm ci:release |