Merge pull request #193 from K-Phoen/changeset-release/main #82
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: [main] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release: | |
name: Create Changeset PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: 'yarn' | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Build type declarations | |
run: yarn tsc | |
- name: Build packages | |
run: yarn build | |
- name: Enable non-immutable yarn installs | |
run: yarn config set -H enableImmutableInstalls false | |
- name: Create Release Pull Request | |
uses: changesets/action@v1 | |
with: | |
version: yarn version | |
publish: yarn release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |