chore(release): bump version from 1.0.2
to 1.0.3
#88
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
# This workflow creates a github release using changeset, and publishes it as an npm package. | |
# It's triggered once a release PR (created by the pre-release workflow) gets merged to the `main` branch. | |
name: Release | |
on: | |
# Once the PR gets merged to `main` or `release` branches | |
pull_request: | |
branches: | |
- main | |
- releases/** | |
- feat/add-this-to-releases | |
types: [closed] | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
# Enable release process either with workflow dispatch or the automated PR process | |
release: | |
name: Release | |
if: | | |
((github.event.pull_request.merged == true) && | |
startsWith(github.event.pull_request.title, 'chore(release)')) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Setup tools | |
uses: ./.github/actions/setup-tools | |
with: | |
install-sui: 'true' | |
install-nodejs: 'true' | |
# Publishes a release in case the release isn't published | |
- name: Publish release | |
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7 | |
with: | |
publish: npm run release | |
createGithubReleases: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |