Skip to content

Commit 4ef6a47

Browse files
committed
chore: remove internal scripts and fix ci publish
1 parent b038dde commit 4ef6a47

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ jobs:
4444
- run: git config --global user.email "${{ steps.import-gpg.outputs.email }}"
4545
- run: git config --global user.name "github-actions[bot]"
4646

47-
- name: Setup npmrc
48-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" > .npmrc
49-
5047
- run: pnpm install --frozen-lockfile
5148

5249
# This line enables distribution
@@ -79,15 +76,17 @@ jobs:
7976
uses: changesets/action@v1
8077
id: changesets
8178
with:
82-
publish: pnpm ci:release --no-git-checks
79+
publish: pnpm ci:release
80+
version: pnpm ci:version
8381
title: Release PR
8482
branch: master
8583
setupGitUser: false
8684
env:
8785
# See https://github.com/changesets/action/issues/147
8886
HOME: ${{ github.workspace }}
8987
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90-
NPM_CONFIG_PROVENANCE: true
88+
NPM_CONFIG_PROVENANCE: 'true'
89+
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
9190

9291
- name: rebase develop with main on publish
9392
if: ${{ steps.changesets.outputs.published == 'true' }}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"scripts": {
1010
"build": "nx affected --target=build",
1111
"clean": "shx rm -rf ./{coverage,dist,docs,node_modules,tmp}/ ./{packages,e2e}/*/{dist,node_modules}/ && git clean -fX -e \"!.env*,nx-cloud.env\"",
12-
"ci:release": "pnpm publish -r && changeset tag",
12+
"ci:release": "pnpm publish -r --no-git-checks && changeset tag",
13+
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
1314
"changeset": "pnpm changeset",
1415
"commit": "git cz",
1516
"docs": "nx affected --target=typedoc",

0 commit comments

Comments
 (0)