Skip to content

Commit f8cb0ec

Browse files
authored
chore: fix release process
1 parent 280aa05 commit f8cb0ec

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/release.yml

+11-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
name: Release
2-
on:
3-
workflow_dispatch:
4-
inputs:
5-
dryrun:
6-
description: "DryRun"
7-
required: false
8-
default: 'true'
2+
on: [workflow_dispatch]
93
jobs:
104
release:
115
name: Release
126
runs-on: ubuntu-latest
7+
# if: github.ref == 'refs/heads/master'
138
steps:
149

15-
- uses: actions/checkout@v2
10+
- name: Setup Node.js for use with actions
11+
uses: actions/[email protected]
1612

17-
- name: git/unshallow
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Unshallow
1817
run: git fetch --prune --unshallow
1918

20-
- uses: cycjimmy/semantic-release-action@v2
21-
with:
22-
dry_run: ${{ github.event.inputs.dryrun }}
23-
extra_plugins: |
24-
@semantic-release/changelog
25-
@semantic-release/git
19+
- name: Run semantic-release
20+
run: npx -p @semantic-release/changelog -p [email protected] -p @semantic-release/git semantic-release
2621
env:
27-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)