Skip to content

Commit 1070087

Browse files
committed
ci: try to fix release workflow
1 parent 760a5d2 commit 1070087

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,19 @@ jobs:
2222
id: changesets
2323
uses: changesets/action@v1
2424
with:
25-
publish: yarn release
2625
version: yarn run version
2726
env:
2827
YARN_ENABLE_IMMUTABLE_INSTALLS: false
2928
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
continue-on-error: true
30+
- name: Creating .npmrc
31+
run: |
32+
cat << EOF > "$HOME/.npmrc"
33+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
34+
EOF
35+
env:
3036
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
- name: Publish
38+
if: steps.changesets.outputs.hasChangesets == 'false'
39+
# You can do something when a publish should happen.
40+
run: yarn release

0 commit comments

Comments
 (0)