Skip to content

Commit a80d7eb

Browse files
committed
Added a publication workflow
1 parent 60eaa9f commit a80d7eb

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publication
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
env:
16+
DIST_TAG: |-
17+
${{ case(
18+
contains(github.ref_name, 'alpha'), 'alpha',
19+
startsWith(github.ref_name, 'v2'), 'previous',
20+
'latest'
21+
) }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: lts/*
27+
- run: npm ci
28+
- run: npx playwright install --with-deps
29+
- run: npm publish --tag $DIST_TAG

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
registry=https://registry.npmjs.org
2+
provenance=true

0 commit comments

Comments
 (0)