Skip to content

Commit f4fd31d

Browse files
Update release.yml
1 parent e44e2fb commit f4fd31d

File tree

1 file changed

+2
-40
lines changed

1 file changed

+2
-40
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,26 @@ on:
44
push:
55
branches:
66
- main
7-
workflow_dispatch:
87

98
concurrency: ${{ github.workflow }}-${{ github.ref }}
109

1110
jobs:
12-
version:
13-
name: Release
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout Repo
17-
uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0
20-
21-
- name: Setup Node.js
22-
uses: actions/setup-node@v3
23-
with:
24-
cache: yarn
25-
node-version: lts/*
26-
27-
- name: Install Dependencies
28-
run: yarn
29-
30-
- name: Create Release Pull Request or Publish to npm
31-
id: changesets
32-
uses: changesets/action@v1
33-
with:
34-
version: yarn version
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
3811
release:
3912
name: Release
4013
runs-on: ubuntu-latest
41-
if: ${{ github.ref == 'refs/heads/main' }}
42-
needs: [version]
4314
steps:
4415
- name: Checkout Repo
4516
uses: actions/checkout@v3
46-
with:
47-
fetch-depth: 0
4817

49-
- name: Setup Node.js
18+
- name: Setup Node.js
5019
uses: actions/setup-node@v3
5120
with:
52-
cache: yarn
5321
node-version: lts/*
5422

5523
- name: Install Dependencies
5624
run: yarn
5725

58-
- name: Create Release Pull Request or Publish to npm
59-
id: changesets
26+
- name: Create Release Pull Request
6027
uses: changesets/action@v1
61-
with:
62-
version: yarn version
63-
publish: yarn release
6428
env:
65-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6629
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)