Skip to content

Commit

Permalink
ci: update to reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed Feb 17, 2024
1 parent 712b972 commit e761aa2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build

on:
push:
pull_request:

jobs:
build:
uses: AwesomeHamster/workflows/.github/workflows/build.yml@master
permissions:
pull-requests: write
issues: write
with:
lint: true
test: true
yarn-no-immutable: true
approve: true
secrets: inherit
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: AwesomeHamster/actions-publish@master
with:
token: ${{ secrets.NPM_TOKEN }}
test: yarn test
uses: AwesomeHamster/workflows/.github/workflows/publish.yml@master
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
with:
yarn-no-immutable: true
test-before-publish: true
secrets:
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 0 additions & 13 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit e761aa2

Please sign in to comment.