-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 949 Bytes
/
main.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: Main
on:
workflow_dispatch:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
lint-build-test:
uses: ./.github/workflows/lint_build_test.yml
secrets: inherit
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 10
needs:
- lint-build-test
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: yarn
- name: Install project dependencies
run: yarn install
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}