-
Notifications
You must be signed in to change notification settings - Fork 235
41 lines (36 loc) · 969 Bytes
/
publish.yaml
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
name: publish
on:
push:
branches:
- main
paths-ignore:
- .gitignore
- README.md
- '.github/ISSUE_TEMPLATE/**'
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Set git credentials
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git remote set-url origin "https://$REPO_PAT@github.com/acedatacloud/HubFrontend"
env:
REPO_PAT: ${{ secrets.REPO_PAT }}
- name: Publish
run: yarn release -- --token "$NPM_TOKEN"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}