Skip to content

Commit 4b4b7e9

Browse files
authored
ci: manual release (#167)
1 parent 142e94e commit 4b4b7e9

2 files changed

Lines changed: 32 additions & 28 deletions

File tree

.github/workflows/main.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -42,31 +42,3 @@ jobs:
4242
with:
4343
github-token: ${{ secrets.GITHUB_TOKEN }}
4444

45-
release:
46-
permissions:
47-
actions: write
48-
checks: write
49-
contents: write
50-
deployments: write
51-
issues: write
52-
packages: write
53-
pull-requests: write
54-
repository-projects: write
55-
security-events: write
56-
statuses: write
57-
name: release
58-
needs: [ test, lockfile-lint ]
59-
runs-on: 'ubuntu-latest'
60-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
61-
steps:
62-
- uses: actions/checkout@v2
63-
- uses: actions/setup-node@v2
64-
with:
65-
node-version: '14'
66-
- name: install dependencies
67-
run: npm ci --ignore-scripts
68-
- name: release
69-
run: npx semantic-release
70-
env:
71-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
72-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: [ workflow_dispatch ]
4+
5+
jobs:
6+
release:
7+
permissions:
8+
actions: write
9+
checks: write
10+
contents: write
11+
deployments: write
12+
issues: write
13+
packages: write
14+
pull-requests: write
15+
repository-projects: write
16+
security-events: write
17+
statuses: write
18+
name: release
19+
runs-on: 'ubuntu-latest'
20+
if: github.ref == 'refs/heads/master'
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: '14'
26+
- name: install dependencies
27+
run: npm ci --ignore-scripts
28+
- name: release
29+
run: npx semantic-release
30+
env:
31+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)