-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (53 loc) · 1.33 KB
/
release.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
51
52
53
54
55
56
name: Release packages
on:
release:
types: [published]
permissions:
contents: read
pages: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: "write"
steps:
- uses: actions/checkout@v2
with:
ref: "main"
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install -g yarn
- name: Release latest Ably UI version
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Action"
./scripts/release.sh "${GITHUB_REF/refs\/tags\//}"
shell: bash
deploy-storybook:
name: Deploy to Storybook
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- run: ls -l
- name: Build
shell: bash
run: |
echo "::group::Build"
yarn install
yarn build-storybook
echo "::endgroup::"
- name: Upload
uses: actions/[email protected]
with:
path: preview
- id: deploy
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4