From e07bbf01aa73b0b136ac4b663725cc6a25b866a2 Mon Sep 17 00:00:00 2001 From: fospring Date: Tue, 2 Apr 2024 22:37:22 +0800 Subject: [PATCH] ci: fix automatic JS release workflow (#83) --- .github/workflows/release.yml | 4 ++-- npm/.changeset/README.md | 8 ++++++++ npm/.changeset/config.json | 11 +++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 npm/.changeset/README.md create mode 100644 npm/.changeset/config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0bd3975..b481b16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,13 +32,13 @@ jobs: run: npm install - name: Build Packages - run: npm build + run: npm run build - name: Create Release Pull Request or Publish to NPM # use changesets/action to create PR and auto release uses: changesets/action@v1 with: - publish: npm release + publish: npm run release commit: "chore(release): publish packages" title: "Publish packages" createGithubReleases: true diff --git a/npm/.changeset/README.md b/npm/.changeset/README.md new file mode 100644 index 0000000..e5b6d8d --- /dev/null +++ b/npm/.changeset/README.md @@ -0,0 +1,8 @@ +# Changesets + +Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works +with multi-package repos, or single-package repos to help you version and publish your code. You can +find the full documentation for it [in our repository](https://github.com/changesets/changesets) + +We have a quick list of common questions to get you started engaging with this project in +[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/npm/.changeset/config.json b/npm/.changeset/config.json new file mode 100644 index 0000000..39f137d --- /dev/null +++ b/npm/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "fixed": [], + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} \ No newline at end of file