Test badges #62
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: Deploy packages | |
on: | |
push: | |
branches: ['master'] | |
jobs: | |
validation: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
name: Validation and Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/save-turbo-cache | |
- uses: ./.github/actions/setup-node | |
- uses: ./.github/actions/install-npm-deps | |
- name: Build package | |
run: npm run build -- --force | |
- name: Linting | |
run: npm run lint | |
deploy-extension: | |
needs: validation | |
name: Deploy @msw-devtools/extension | |
uses: ./.github/workflows/deploy-extension.yml | |
deploy-demo: | |
needs: validation | |
name: Deploy @msw-devtools/demo | |
uses: ./.github/workflows/deploy-demo.yml | |
changesets: | |
name: Deploy @msw-devtools/connect | |
needs: validation | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commit | |
fetch-depth: 0 | |
- uses: ./.github/actions/restore-turbo-cache | |
- uses: ./.github/actions/setup-node | |
- uses: ./.github/actions/install-npm-deps | |
- name: Publish | |
uses: changesets/action@master | |
with: | |
title: "Next release" | |
publish: npm run publish:connect | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |