1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- name: Release
- on:
- push:
- branches:
- - main
- permissions:
- contents: read
- pull-requests: write
- concurrency: ${{ github.workflow }}-${{ github.ref }}
- jobs:
- release:
- name: Release
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Repo
- uses: actions/checkout@v4
- - uses: ruby/setup-ruby@v1
- with:
- bundler-cache: true
- - name: Enable corepack
- run: corepack enable pnpm
- - name: Setup Node.js 18
- uses: actions/setup-node@v4
- with:
- cache: 'pnpm'
- node-version: 18
- registry-url: 'https://registry.npmjs.org'
- - name: Install Dependencies
- run: pnpm install
- - name: Build Package
- run: pnpm run build
- - name: Creating .npmrc
- run: |
- cat << EOF > "$HOME/.npmrc"
- //registry.npmjs.org/:_authToken=$NPM_TOKEN
- EOF
- env:
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- - name: Create Release Pull Request
- uses: changesets/action@v1
- with:
- publish: pnpm release
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|