-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (29 loc) · 865 Bytes
/
release.yml
File metadata and controls
37 lines (29 loc) · 865 Bytes
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
name: 🚀 formbold react release
on:
push:
branches:
- main # Adjust this to your desired branch
jobs:
publish:
name: 🚀 formbold react release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Clear npm cache
run: npm cache clean --force
- name: Delete node_modules
run: rm -rf node_modules
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build # Replace with your build command if needed
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_FORMBOLDREACT }}