Skip to content

Commit 22d4860

Browse files
committed
Add a release workflow for @aehrc/questionnaire-test-toolkit
Mirrors publish_sdc_populate.yml apart from the package name and tag: triggered by a GitHub Release, environment: npm, permissions id-token: write, and npm publish --provenance --access public via npm OIDC trusted publishing. The release tag is questionnaire-test-toolkit@<version>. Nothing is published by merging this. The workflow only runs on a release, and the package has never been released. Whether @aehrc/questionnaire-test-toolkit should exist as a public name is AEHRC/CSIRO's decision, and trusted-publisher configuration for a name that has never been published is an npm-org admin action outside this repository.
1 parent ebef767 commit 22d4860

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish @aehrc/questionnaire-test-toolkit
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-test-lint:
9+
if: startsWith(github.ref_name, 'questionnaire-test-toolkit@')
10+
uses: ./.github/workflows/build_test_lint.yml
11+
12+
publish:
13+
name: Publish to npm
14+
needs: build-test-lint
15+
runs-on: ubuntu-latest
16+
environment: npm
17+
permissions:
18+
id-token: write
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Use Node.js 24.x
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 24
25+
cache: npm
26+
registry-url: 'https://registry.npmjs.org'
27+
- name: Install dependencies
28+
run: npm ci
29+
- name: Build
30+
run: npm run build -w packages/questionnaire-test-toolkit
31+
- name: Publish
32+
run: npm publish --provenance --access public
33+
working-directory: packages/questionnaire-test-toolkit

0 commit comments

Comments
 (0)