We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e622f6 commit 8198044Copy full SHA for 8198044
.github/workflows/npm.yml
@@ -1,4 +1,8 @@
1
-on: [push, pull_request]
+on:
2
+ pull_request:
3
+ push:
4
+ branches:
5
+ - main
6
7
jobs:
8
build:
@@ -32,10 +36,10 @@ jobs:
32
36
- name: Build and Test
33
37
run: npm run build-and-test
34
38
- name: Release
35
- if: github.ref == 'refs/heads/main'
39
+ if: github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/v')
40
run: npm run release
41
- name: GitHub Release
42
43
uses: ncipollo/release-action@v1
44
with:
45
artifacts: dist/layer.zip
0 commit comments