Skip to content

Commit

Permalink
improve gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Jan 27, 2024
1 parent 9700d9a commit 96174b9
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Release
on:
workflow_dispatch:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions: {}

jobs:
release:
permissions:
contents: write
pull-requests: write
name: Release
runs-on: ubuntu-latest
steps:
Expand All @@ -19,11 +15,7 @@ jobs:
with:
node-version: 18
- run: npm ci
- name: Publish to npm
id: changesets
- name: Create Release Pull Request
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.VTBOT_NPM_TOKEN }}

0 comments on commit 96174b9

Please sign in to comment.