-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 959 Bytes
/
push.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
name: Main
on:
push:
branches: [main]
jobs:
Shared:
uses: ./.github/workflows/install-lint.yml
Release:
needs:
- Shared
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/cache@v3
id: cache-node_modules
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Create Release Pull Request
- name: Create Release Pull Request
uses: changesets/action@v1
with:
title: "🦋 Changeset release"
version: npm run version
publish: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}