Skip to content

Commit

Permalink
ci: add release-packages-next.yml (kubesphere#4274)
Browse files Browse the repository at this point in the history
Signed-off-by: donniean <[email protected]>
Co-authored-by: donniean <[email protected]>
  • Loading branch information
ks-ci-bot and donniean authored Jul 15, 2024
1 parent fa22ceb commit 5889570
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release-packages-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Packages Next

on:
push:
branches:
- ksc-next
- ksc-next-*
- ksc-next/*
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release-packages:
name: Release
runs-on: ubuntu-latest
# runs-on: self-hosted

steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16

- name: Install Dependencies
run: yarn

- name: Build Packages
run: |
yarn build:locales
yarn build:packages
- name: Generate changeset
run: yarn changeset version --snapshot next

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish
run: yarn changeset publish --no-git-tag --tag next

0 comments on commit 5889570

Please sign in to comment.