forked from cern-sis/react-formule
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 919 Bytes
/
publish.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
name: Publish
on:
release:
types: [published]
workflow_dispatch:
push:
branches: [add-semantic-release]
jobs:
build:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install semantic-release extra plugins
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
- name: Install
run: yarn
- name: Build
run: yarn build
# - name: Publish
# uses: JS-DevTools/npm-publish@v3
# with:
# token: ${{ secrets.CERN_SIS_NPM }}
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.CERN_SIS_NPM }}
run: npx semantic-release