Skip to content

Commit 9921675

Browse files
committed
fix: update worklow
1 parent 61ad619 commit 9921675

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/automated.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- name: Setup Node.js
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: 14
29+
node-version: 22 # Required for the latest semantic-release plugins
3030
- name: Semantic Release
31-
uses: cycjimmy/semantic-release-action@v3
31+
uses: cycjimmy/semantic-release-action@v4 # Update to v4 for better Node 20+ support
3232
id: semantic
3333
with:
3434
extra_plugins: |
3535
@semantic-release/changelog
3636
@semantic-release/git
3737
@semantic-release/github
3838
env:
39-
GITHUB_TOKEN: "${{ secrets.GITHUB }}"
39+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" # Use the built-in token if possible
4040
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
4141
outputs:
4242
new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
@@ -58,12 +58,11 @@ jobs:
5858
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
5959
- name: Install dependencies
6060
run: yarn install
61-
61+
6262
- name: Set Environment Variables
6363
run: |
6464
echo "organization_id=${{ secrets.COCREATE_ORGANIZATION_ID }}" >> $GITHUB_ENV
6565
echo "key=${{ secrets.COCREATE_KEY }}" >> $GITHUB_ENV
6666
echo "host=${{ secrets.COCREATE_HOST }}" >> $GITHUB_ENV
6767
- name: CoCreate Upload
6868
run: coc upload
69-

0 commit comments

Comments
 (0)