-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 771 Bytes
/
cd.yml
File metadata and controls
28 lines (26 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: CD
on:
workflow_call: # invoked by release-please.yml on release_created
workflow_dispatch: # manual backup via Actions UI
jobs:
publish-npm:
name: Publish to npm
runs-on: ubuntu-latest
if: github.repository == 'chrislyons-dev/archlette'
permissions:
id-token: write # for npm trusted publishing (OIDC)
contents: read
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run format:check
- run: npm run lint
- run: npm run typecheck
- run: npm test
- run: npm run build
- name: Publish
run: npm publish --access public --provenance