Skip to content

Commit

Permalink
ci: manual release (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobik committed Aug 25, 2021
1 parent 142e94e commit 4b4b7e9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,3 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

release:
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
name: release
needs: [ test, lockfile-lint ]
runs-on: 'ubuntu-latest'
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: install dependencies
run: npm ci --ignore-scripts
- name: release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on: [ workflow_dispatch ]

jobs:
release:
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
name: release
runs-on: 'ubuntu-latest'
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: install dependencies
run: npm ci --ignore-scripts
- name: release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 4b4b7e9

Please sign in to comment.