chore: workflow to publish packages for this repository #1
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: Publish @layerzerolabs packages | |
on: | |
push: | |
branches: | |
- gx/main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
if: github.repository == 'LayerZero-Labs/changesets' | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/ci-setup | |
- name: Create Release Pull Request or Publish to npm | |
# https://github.com/changesets/action | |
uses: changesets/action@v1 | |
with: | |
# this expects you to have a script called release which does a build for your packages and calls changeset publish | |
publish: yarn release | |
version: yarn version-packages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |