Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit c89587b

Browse files
committed
ci: update publish workflow
1 parent 7257dc1 commit c89587b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ on:
1111

1212
jobs:
1313
publish:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-20.04
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v2
1717
- name: Setup node
18-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@v2
1919
with:
2020
node-version: '14'
2121
registry-url: 'https://registry.npmjs.org'
@@ -32,19 +32,19 @@ jobs:
3232
id: release
3333
uses: actions/create-release@v1
3434
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # provided by Actions
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
with:
3737
tag_name: ${{ github.ref }}
3838
release_name: Release ${{ github.ref }}
3939
draft: false
4040
prerelease: false
4141

4242
- name: Upload changelog
43-
uses: actions/upload-release-asset@v1.0.1
43+
uses: actions/upload-release-asset@v1
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
with:
47-
upload_url: ${{ steps.release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
47+
upload_url: ${{ steps.release.outputs.upload_url }}
4848
asset_path: CHANGELOG.md
4949
asset_name: CHANGELOG.md
5050
asset_content_type: text/markdown
@@ -54,7 +54,7 @@ jobs:
5454
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
5555
run: |
5656
if [[ $GITHUB_REF =~ alpha|beta ]]; then
57-
yarn foreach --no-private npm publish --tag next
57+
yarn workspaces foreach --no-private npm publish --tag next
5858
else
59-
yarn foreach --no-private npm publish --tag latest
59+
yarn workspaces foreach --no-private npm publish --tag latest
6060
fi

CHANGELOG.md

Whitespace-only changes.

0 commit comments

Comments
 (0)