-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.15 KB
/
push.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Publish Packages
on:
push:
branches:
- main
concurrency:
group: '${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
release:
name: Create releases
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
steps:
- name: 🛠️ Create releases
id: release
uses: google-github-actions/release-please-action@v4
deploy:
name: Create and publish packages
runs-on: ubuntu-latest
needs: release
if: needs.release.outputs.releases_created
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false
- name: ⎔ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: 📥 Download dependencies
run: npm ci
- name: 🏗 Run build script
run: npm run build
- name: 🚢 Publish packages
run: ./scripts/publish.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}