Skip to content

Commit 514f9d9

Browse files
committed
Standardise release workflows
1 parent 75ee010 commit 514f9d9

File tree

4 files changed

+42
-63
lines changed

4 files changed

+42
-63
lines changed

.github/workflows/prerelease-checks.yml

-17
This file was deleted.

.github/workflows/release-github.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release GitHub
2+
3+
on:
4+
push:
5+
branches: [release/*]
6+
7+
jobs:
8+
create-github-release:
9+
name: Create GitHub Release and Git tag
10+
runs-on: ubuntu-latest
11+
environment: Release
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: cucumber/[email protected]
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-npm.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release NPM
2+
3+
on:
4+
push:
5+
branches: [release/*]
6+
7+
jobs:
8+
publish-npm:
9+
name: Publish NPM module
10+
runs-on: ubuntu-latest
11+
environment: Release
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '22.x'
17+
cache: 'npm'
18+
cache-dependency-path: package-lock.json
19+
- run: npm ci
20+
- run: npm run compile
21+
- uses: cucumber/[email protected]
22+
with:
23+
npm-token: ${{ secrets.NPM_TOKEN }}
24+
npm-tag: 'latest'

.github/workflows/release.yml

-46
This file was deleted.

0 commit comments

Comments
 (0)