fix(deps): update patch updates #223
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: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
registry-url: 'https://registry.npmjs.org' # to create .npmrc file with NODE_AUTH_TOKEN | |
node-version: 22 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: npm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.SHARED_BOT_NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.SHARED_BOT_NPM_TOKEN }} | |
- name: Publish next snapshot | |
if: steps.changesets.outputs.published != 'true' | |
run: | | |
git checkout master # reset current branch to master | |
npm exec -- changeset version --snapshot next | |
npm exec -- changeset publish --no-git-tag --snapshot --tag next | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.SHARED_BOT_NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.SHARED_BOT_NPM_TOKEN }} |