Skip to content

Commit

Permalink
feat(github): Migrate packages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
langri-sha committed Aug 7, 2024
1 parent 8c48139 commit 9303dd4
Showing 1 changed file with 8 additions and 34 deletions.
42 changes: 8 additions & 34 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,13 @@
name: Packages
name: Release

on:
workflow_dispatch:

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
environment: release

steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_TOKEN }}

- name: Setup PNPM
uses: langri-sha/github/actions/pnpm@v0.4.0
with:
always-auth: true
registry-url: https://registry.npmjs.org
scope: '@langri-sha'

- name: Configure Git user
uses: langri-sha/github/actions/github-action-bot-git-user@v0.4.0

- name: Build composite projects
run: pnpm tsc --build .

- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npx beachball@2.43.1 publish \
--access public \
--message "feat(beachball): Publish packages" \
--new \
--yes
packages:
name: Packages
uses: langri-sha/github/.github/workflows/packages.yml@v0.5.2
with:
environment: release
scope: '@langri-sha'
secrets: inherit

0 comments on commit 9303dd4

Please sign in to comment.