Skip to content

Commit

Permalink
chore: workflow to publish packages for this repository
Browse files Browse the repository at this point in the history
  • Loading branch information
zouguangxian committed Jun 15, 2024
1 parent 2c7a500 commit fd95a69
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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 }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"changeset": "packages/cli/bin.js",
"check-all": "yarn test && yarn lint && yarn types:check",
"version-packages": "changeset version && yarn prettier",
"release-packages": "yarn workspace @changesets/cli pack && npm --no-workspaces publish packages/cli/changesets-cli-*.tgz",
"release": "yarn build && changeset publish"
},
"repository": {
Expand Down

0 comments on commit fd95a69

Please sign in to comment.