Skip to content

Commit

Permalink
ci: add permissions and run semantic release on master
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Sep 28, 2023
1 parent 3c921f2 commit e83aa95
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build eslint-config-scratch

on:
push:
branches:
- master
push:
permissions:
contents: write # publish a GitHub release
pages: write # deploy to GitHub Pages
issues: write # comment on released issues
pull-requests: write # comment on released pull requests
jobs:
build-eslint:
runs-on: ubuntu-latest
Expand All @@ -17,8 +20,9 @@ jobs:
- name: Install Dependencies
run: npm install
- name: Test
run: Semantic Release
- name: Build
run: npm test
- name: Semantic Release
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit e83aa95

Please sign in to comment.