Skip to content

Commit 9c625ed

Browse files
committed
ci: fix release script
1 parent fa17ea1 commit 9c625ed

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ jobs:
8080
run: |
8181
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
8282
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
83-
- name: Pull git tags (needed for lerna / semantic release to correctly version)
84-
run: git fetch --prune --unshallow --tags
8583
- uses: actions/setup-node@v2
8684
with:
8785
node-version: '16.x'
@@ -99,7 +97,7 @@ jobs:
9997
run: yarn --immutable
10098
- name: Authenticate with Registry
10199
run: |
102-
yarn logout
100+
yarn npm logout
103101
echo "registry=http://registry.npmjs.org/" >> .npmrc
104102
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
105103
npm whoami
@@ -110,5 +108,6 @@ jobs:
110108
run: yarn release:ci
111109
env:
112110
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
111+
NPM_CONFIG_REGISTRY: https://registry.npmjs.org/
113112
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114113
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,8 @@
6363
"dependencies": {
6464
"pixelmatch": "^5.2.1",
6565
"pngjs": "^6.0.0"
66+
},
67+
"publishConfig": {
68+
"access": "public"
6669
}
6770
}

release.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
"branches": ["main"],
23
"plugins": [
34
["@semantic-release/commit-analyzer", {
45
"releaseRules": [

0 commit comments

Comments
 (0)