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 095c669 commit f11bad7Copy full SHA for f11bad7
.github/workflows/ci.yml
@@ -33,4 +33,30 @@ jobs:
33
34
- name: ✅ Run tests
35
run: npm run test
36
-
+
37
+ publish:
38
+ name: 📦 Publish
39
+ runs-on: ubuntu-latest
40
+ needs: lint-test
41
+ if: github.ref == 'refs/heads/main'
42
43
+ steps:
44
+ - name: 👍 Checkout
45
+ uses: actions/checkout@v4
46
47
+ - name: 🐢 Setup node.js
48
+ uses: actions/setup-node@v4
49
+ with:
50
+ node-version: 20
51
+ cache: 'npm'
52
53
+ - name: 📥 Install Dependencies
54
+ run: npm install
55
56
+ - name: 🛠️ Build
57
+ run: npm run build
58
59
+ - name: 🚀 Publish to npm
60
+ uses: JS-DevTools/npm-publish@v3
61
62
+ token: ${{ secrets.NPM_TOKEN }}
0 commit comments