-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
environment: release | ||
name: Test | ||
steps: | ||
- name: setup repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: setup node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run test | ||
- run: npm run build | ||
timeout-minutes: 10 | ||
name: Test and build | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
environment: release | ||
name: Test | ||
steps: | ||
- name: setup repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: setup node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run test | ||
- run: npm run build | ||
- run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
name: Test, build and release | ||
on: | ||
push: | ||
branches: | ||
- main |