-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (39 loc) · 1.02 KB
/
release.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Release npm module
on:
push:
branches:
- release/*
jobs:
pre-release-check:
uses: ./.github/workflows/prerelease-checks.yml
test:
uses: ./.github/workflows/test.yml
publish-npm:
name: Publish NPM module
needs: [pre-release-check, test]
runs-on: ubuntu-latest
environment: Release
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm ci
- run: npm run compile
- uses: cucumber/[email protected]
with:
npm-token: ${{ secrets.NPM_TOKEN }}
create-github-release:
name: Create GitHub Release and Git tag
needs: [publish-npm]
runs-on: ubuntu-latest
environment: Release
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: cucumber/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}