chore: release 1.8.1 #32
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: | |
- release | |
env: | |
CI: true | |
PNPM_CACHE_FOLDER: .pnpm-store | |
jobs: | |
release: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
environment: npm publish | |
steps: | |
- name: checkout code repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 17 | |
- name: install pnpm | |
run: npm i pnpm@latest -g | |
- name: setup pnpm config | |
run: pnpm config set store-dir $PNPM_CACHE_FOLDER | |
- name: install dependencies | |
run: pnpm install --fix-lockfile | |
- name: Install Cypress 📥 | |
run: npx cypress install | |
- name: test | |
run: npm test | |
- name: build | |
run: npm run build | |
- name: create and publish versions | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm ci:publish | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GTOKEN }} | |
- name: Send a Slack notification if a publish happens | |
if: steps.changesets.outputs.published == 'true' | |
# You can do something when a publish happens. | |
run: echo "published" | |