-
Notifications
You must be signed in to change notification settings - Fork 73
43 lines (37 loc) · 1.08 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
name: Release
on:
# PRs have their own canary releases which always run but don't publish the GitHub Action.
# To allow debugging the release process, this does not have a paths filter.
pull_request:
branches:
- main
# Pushes to main trigger a release and publish the GitHub Action. To allow the occasional update
# to markdown and config files, only changes to actual source code trigger a release.
push:
branches:
- main
paths:
- action-src/**
- bin-src/**
- node-src/**
- action.yml
- isChromatic.*
- package.json
- storybook-addon.*
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Install dependencies
run: yarn install --ignore-scripts
- name: Create Release
run: yarn run release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}