feat: using setQuery util in tests that need it #1190
Workflow file for this run
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 a new version | |
on: | |
pull_request: | |
types: [ closed ] | |
branches: [ main ] | |
jobs: | |
release: | |
if: github.event.pull_request.merged == true && github.head_ref == 'release' | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/browsers:node-18.16.0-chrome-112.0.5615.121-1-ff-112.0.1-edge-112.0.1722.48-1 | |
# https://github.com/cypress-io/github-action#firefox Cypress FF image needs this user permissions to be able to install dependencies | |
options: --user 1001 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
# Install pnpm because it is not included in our container image | |
- name: install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: install dependencies | |
run: pnpm install | |
- name: lint packages | |
run: pnpm run lint | |
- name: test packages | |
run: pnpm run test | |
- name: configure git user | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "empathy/x" | |
- name: configure npm auth | |
run: | | |
npm config set registry="https://registry.npmjs.org/" | |
npm config set _authToken=${NPM_TOKEN} | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN_GRANULAR_ACCESS }} | |
- name: publish the release | |
run: pnpm run publish-release | |
- name: push tags | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.SUPPORT_TOKEN }} | |
branch: ${{ github.ref }} | |
tags: true |