Skip to content

Commit

Permalink
ci: update publish script to run raw commands instead of relying NPM (#…
Browse files Browse the repository at this point in the history
…11)

* ci: update publish script to run raw commands instead of relying NPM

Signed-off-by: Rong Sen Ng (motss) <[email protected]>
  • Loading branch information
motss authored Feb 16, 2023
1 parent 470a0b6 commit 20a1d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ jobs:
uses: changesets/action@v1
with:
commit: 'chore: release package'
publish: npm run release
publish: npm x -y -- changeset publish
title: 'chore: release package'
version: npm run version
version: npm x -y -- changeset version

# - name: Publish to npm (Prerelease)
# if: contains(github.ref, '-rc') == true || contains(github.ref, '-') == true
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@
"lint-commit": "sh $(npm root)/@reallyland/tools/lint-commit.sh",
"lint:build": "sh $(npm root)/@reallyland/tools/lint-build.sh -c $(npm root)/@reallyland/tools/browser/.build.eslintrc.json",
"pre-commit": "sh $(npm root)/@reallyland/tools/pre-commit.sh",
"release": "changeset publish",
"test": "vitest --coverage",
"version": "changeset version",
"version2": "sh $(npm root)/@reallyland/tools/generate-changelogs.sh && git add *CHANGELOG.md"
"version": "sh $(npm root)/@reallyland/tools/generate-changelogs.sh && git add *CHANGELOG.md"
},
"dependencies": {
"tslib": "^2.5.0"
Expand Down

0 comments on commit 20a1d34

Please sign in to comment.