Skip to content

Commit 68f060b

Browse files
committed
fix: change webflows
1 parent fb8054f commit 68f060b

File tree

2 files changed

+25
-53
lines changed

2 files changed

+25
-53
lines changed

.github/workflows/publish.yml

-51
This file was deleted.

.github/workflows/release.yml

+25-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ jobs:
119119
run: |
120120
git checkout -b ${{ env.PR_BRANCH }}
121121
122-
- run: echo "🎉 event - ${{ github.event_name }}"
123-
124122
# This action will bump version, tag commit and generate a changelog with conventional commits.
125123
# see: https://github.com/TriPSs/conventional-changelog-action
126124
- name: Create Changelog
@@ -181,3 +179,28 @@ jobs:
181179
182180
${{ needs.changelog.outputs.clean_changelog }}
183181
</details>
182+
183+
publish:
184+
runs-on: ubuntu-latest
185+
needs: release
186+
steps:
187+
- name: Checkout
188+
uses: actions/checkout@v4
189+
with:
190+
persist-credentials: false
191+
192+
# need this for using yarn v4
193+
- name: Enable Corepack
194+
run: corepack enable
195+
196+
- uses: actions/setup-node@v4
197+
with:
198+
node-version: '20.x'
199+
registry-url: 'https://registry.npmjs.org'
200+
201+
# npm publish
202+
- name: Publish package on NPM 📦
203+
# if using yarn v4
204+
run: yarn npm publish
205+
env:
206+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)