release: bump icons (#101) #13
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: | |
paths: | |
- ".changeset/**" | |
- "packages/**" | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
with: | |
# see `fetch-depth` in README: https://github.com/actions/checkout#checkout-v3, | |
# we set to `0` so the referenced commits are available for the command below | |
fetch-depth: 0 | |
- name: Prepare Environment | |
uses: ./.github/actions/setup-env | |
timeout-minutes: 10 | |
- name: Creating .npmrc file | |
run: | | |
cp .npmrc.example .npmrc | |
sed -i "s/NPM_ACCESS_TOKEN/$NPM_TOKEN/g" .npmrc | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Build | |
run: pnpm build:packages | |
- name: Create Release Pull Request | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm release | |
version: pnpm version-packages | |
commit: 'release: bump package(s)' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |