We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d279f65 commit c34b534Copy full SHA for c34b534
2 files changed
.github/workflows/build.yml
@@ -1,4 +1,4 @@
1
-name: CI
+name: Build
2
3
on: [push, pull_request]
4
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
+name: Publish
+
+on:
+ workflow_run:
5
+ workflows: ['Build']
6
+ branches: [main]
7
+ types:
8
+ - completed
9
10
+jobs:
11
+ on-success:
12
+ runs-on: ubuntu-latest
13
+ if: ${{ github.event.workflow_run.conclusion == 'success' }}
14
15
+ strategy:
16
+ matrix:
17
+ node-version: [18.x]
18
19
+ steps:
20
+ - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
21
+ - name: Use Node.js ${{ matrix.node-version }}
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: ${{ matrix.node-version }}
25
+ - name: yarn install, and build
26
+ run: |
27
+ yarn install
28
+ yarn run build
29
+ - uses: JS-DevTools/npm-publish@v3
30
31
+ token: ${{ secrets.NPM_TOKEN }}
0 commit comments