Skip to content

Commit

Permalink
fix: upgrade GitHub workflow with new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
opass committed May 9, 2023
1 parent d977bf6 commit e7c3e00
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# See: https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Use Yarn cache
uses: actions/cache@v2
Expand All @@ -40,8 +40,8 @@ jobs:
run: |
RELEASE_TRACK=canary
PKG_VERSION=$(npm pkg get version | sed 's/"//g')
echo "::set-output name=release_track::$RELEASE_TRACK"
echo "::set-output name=pkg_version::$PKG_VERSION"
echo "release_track=$RELEASE_TRACK" >> $GITHUB_OUTPUT
echo "pkg_version=$PKG_VERSION" >> $GITHUB_OUTPUT
- name: Build package
run: yarn build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-dev1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# See: https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Use Yarn cache
uses: actions/cache@v2
Expand All @@ -40,8 +40,8 @@ jobs:
run: |
RELEASE_TRACK=dev1
PKG_VERSION=$(npm pkg get version | sed 's/"//g')
echo "::set-output name=release_track::$RELEASE_TRACK"
echo "::set-output name=pkg_version::$PKG_VERSION"
echo "release_track=$RELEASE_TRACK" >> $GITHUB_OUTPUT
echo "pkg_version=$PKG_VERSION" >> $GITHUB_OUTPUT
- name: Build package
run: yarn build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-dev2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# See: https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Use Yarn cache
uses: actions/cache@v2
Expand All @@ -40,8 +40,8 @@ jobs:
run: |
RELEASE_TRACK=dev2
PKG_VERSION=$(npm pkg get version | sed 's/"//g')
echo "::set-output name=release_track::$RELEASE_TRACK"
echo "::set-output name=pkg_version::$PKG_VERSION"
echo "release_track=$RELEASE_TRACK" >> $GITHUB_OUTPUT
echo "pkg_version=$PKG_VERSION" >> $GITHUB_OUTPUT
- name: Build package
run: yarn build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# See: https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Use Yarn cache
uses: actions/cache@v2
Expand All @@ -40,8 +40,8 @@ jobs:
run: |
RELEASE_TRACK=production
PKG_VERSION=$(npm pkg get version | sed 's/"//g')
echo "::set-output name=release_track::$RELEASE_TRACK"
echo "::set-output name=pkg_version::$PKG_VERSION"
echo "release_track=$RELEASE_TRACK" >> $GITHUB_OUTPUT
echo "pkg_version=$PKG_VERSION" >> $GITHUB_OUTPUT
- name: Build package
run: yarn build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Use Yarn cache
uses: actions/cache@v2
Expand Down

0 comments on commit e7c3e00

Please sign in to comment.