fix(cypress): add deprecation notice (#331) #257
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: Prerelease | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
prerelease: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.BOT_TOKEN }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Setup git user | |
shell: bash | |
run: | | |
npm config set "//registry.npmjs.org/:_authToken=$NPM_TOKEN" | |
git config --global user.name 'amidostacks' | |
git config --global user.email '[email protected]' | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Node Modules Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-22-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-22- | |
- name: Install | |
shell: bash | |
run: npm ci | |
- name: Version | |
shell: bash | |
run: npx nx affected --target=version --base=last-prerelease --configuration=prerelease --preid="alpha-${{ github.run_number }}" --parallel=1 | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Tag last-prerelease | |
shell: bash | |
run: git tag -f last-prerelease | |
- name: Push changes | |
uses: ad-m/github-push-action@552c074ed701137ebd2bf098e70c394ca293e87f | |
with: | |
github_token: ${{ secrets.BOT_TOKEN }} | |
branch: ${{ github.ref }} | |
force: true | |
tags: true |