From 540f207a156d66a4715957c10c0531ac186368fa Mon Sep 17 00:00:00 2001 From: CY Date: Fri, 13 Sep 2024 16:15:06 +0800 Subject: [PATCH] chore(ci): auto publish full --- .github/workflows/ci.yml | 20 ++++++++++++++++++-- packages/full/package.json | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74efe245..8efb9ae7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,8 @@ on: push: branches: main # paths-ignore: - # - '**/*.md' - # - 'examples/**/*.html' + # - '**/*.md' + # - 'examples/**/*.html' env: CI: true @@ -56,6 +56,22 @@ jobs: GITHUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: \@oplayer/full github version update + if: steps.changesets.outputs.published == 'true' + uses: wranders/commit-action@v0 + with: + message: auto update @oplayer/full + files: | + packages/full/package.json + + - name: \@oplayer/full npm publish + if: steps.changesets.outputs.published == 'true' + run: | + cd packages/full + pnpm version prerelease + pnpm set //registry.npmjs.org/:_authToken=$secrets.NPM_TOKEN + pnpm publish + # 已被墙 # - name: build websites # run: | diff --git a/packages/full/package.json b/packages/full/package.json index b11c3105..bedee31b 100644 --- a/packages/full/package.json +++ b/packages/full/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/full", - "version": "0.0.1-beta.1", + "version": "0.0.1-beta.2", "description": "all loader in one", "type": "module", "main": "./dist/index.min.js",