Fix(deps): move vitest to dev dep (#78) #80
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 | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
if: ${{ github.reposity_owner }} == 'Interactions-as-a-Service' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js 16.17 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.17 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Check for formatting issues | |
run: npm run check:format | |
- name: Check for linting issues | |
run: npm run check:lint | |
- name: Run tests | |
run: npm run test | |
- name: Build | |
run: npm run build | |
- name: Create Release Pull Request | |
uses: changesets/action@v1 | |
with: | |
version: node .github/changeset-version.cjs | |
publish: npx changeset publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Add label | |
run: node ./.github/gh-label.cjs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |