chore: converted issue template to forms #15
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
name: Release | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- .gitignore | |
- .eslintignore | |
- .eslintrc.json | |
- .prettierignore | |
- .prettierrc | |
- .npmignore | |
- .cspell.json | |
- CHANGELOG.md | |
- CODE_OF_CONDUCT.md | |
- LICENSE | |
- README.md | |
- tsconfig.json | |
- tsconfig.module.json | |
- tsconfig.test.json | |
- tsconfig.tests.module.json | |
- knownissues.txt | |
- ".github/ISSUE_TEMPLATE/**" | |
tags-ignore: | |
- "**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{secrets.GH_TOKEN}} | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm run test | |
# TODO: Run coverage and submit to codecov or another coverage analysis tool, possibly in a separate job. | |
#- name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@v3 | |
# with: | |
# directory: "./coverage" | |
release: | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{secrets.GH_TOKEN}} | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build:prod | |
- name: Run semantic-release | |
env: | |
GITHUB_TOKEN: ${{secrets.GH_TOKEN}} | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |
run: | | |
npx \ | |
-p @semantic-release/npm \ | |
-p @semantic-release/git \ | |
-p @semantic-release/commit-analyzer \ | |
-p @semantic-release/release-notes-generator \ | |
-p @semantic-release/github \ | |
-p @semantic-release/changelog \ | |
-p conventional-changelog-conventionalcommits \ | |
semantic-release |