We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8454ff4 commit e7fd2d4Copy full SHA for e7fd2d4
.github/workflows/create-release.yml
@@ -1,14 +1,32 @@
1
on:
2
push:
3
tags:
4
- - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
+ - 'v*'
5
6
name: Create Release
7
8
jobs:
9
+ publish-to-npm:
10
+ name: Publish to npm
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ id-token: write
14
+ steps:
15
+ - name: Checkout source
16
+ uses: actions/checkout@v4
17
+ - name: Setup node
18
+ uses: actions/setup-node@v4
19
+ with:
20
+ node-version: 20
21
+ registry-url: 'https://registry.npmjs.org'
22
+ cache: npm
23
+ - name: Install latest npm version
24
+ run: npm install -g npm@latest
25
+
26
create-github-release:
27
name: Create GitHub Release
28
runs-on: ubuntu-latest
29
+ needs: publish-to-npm
30
permissions:
31
contents: write
32
steps:
0 commit comments