Skip to content

v0.10.0

v0.10.0 #35

Workflow file for this run

name: NPM Release
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable Corepack
run: corepack enable
- name: Set version from release tag
run: |
VERSION="${GITHUB_REF_NAME#v}"
echo "Publishing version: $VERSION"
npm pkg set version="$VERSION"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Smoke test
run: pnpm test
- name: Pack
run: |
pnpm pack
mkdir -p packs
mv *.tgz packs/
ls -ltr packs
- uses: actions/upload-artifact@v4
with:
name: packages-${{ github.sha }}
path: packs
- name: Trigger npm_publish_automation
uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
with:
route: POST /repos/paritytech/npm_publish_automation/actions/workflows/publish.yml/dispatches
ref: main
inputs: '${{ format(''{{ "repo": "{0}", "run_id": "{1}" }}'', github.repository, github.run_id) }}'
env:
GITHUB_TOKEN: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}