staging to prod #359
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: Linting and Unit Tests | |
permissions: | |
contents: write | |
packages: write | |
on: | |
push: | |
branches: [main, staging] | |
pull_request: | |
branches: [main, staging] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js from .nvmrc | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- run: npm ci | |
- name: lint | |
run: npm run lint | |
- name: prettier | |
run: npm run prettier:ci | |
# release: | |
# needs: [test] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# with: | |
# persist-credentials: false | |
# - uses: actions/setup-node@v4 | |
# with: | |
# node-version-file: ".nvmrc" | |
# - run: | | |
# npm ci | |
# npx semantic-release --ci | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |