Skip to content

Commit 655530f

Browse files
authored
devops: restore npm publishing from GitHub Actions (#459)
## Summary - Release publishing goes back to the GitHub Actions workflow with OIDC trusted publishing and provenance. - The ESRP pipeline stays available for manual on-demand runs only (no automatic triggers).
1 parent 397ee39 commit 655530f

2 files changed

Lines changed: 27 additions & 7 deletions

File tree

.azure-pipelines/publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# Publishes @playwright/cli via ESRP:
2-
# - @next (alpha with current timestamp) from main, on manual trigger
3-
# - @latest from v* release tags (pushed when a GitHub release is published)
4-
trigger:
5-
tags:
6-
include:
7-
- v*
1+
# Publishes @playwright/cli via ESRP. Manual trigger only, regular publishing
2+
# is done from GitHub Actions, see .github/workflows/publish.yml.
3+
# Depending on the selected ref, a manual run publishes:
4+
# - @next (alpha with current timestamp) from main
5+
# - @latest from v* release tags
6+
trigger: none
87

98
pr: none
109

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish
2+
on:
3+
workflow_dispatch:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish-npm:
9+
if: github.event_name == 'release'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write # Required for OIDC npm publishing
14+
steps:
15+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
16+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
17+
with:
18+
node-version: 24
19+
registry-url: https://registry.npmjs.org/
20+
- run: npm ci
21+
- run: npm publish

0 commit comments

Comments
 (0)