Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
update workflow files to not used deprecated apis (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
frehner committed Dec 2, 2022
1 parent b1989c9 commit e0b154a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ on:

jobs:
Releases:
runs-on: ubuntu-latest
runs-on: shopify-ubuntu-latest
if: github.repository_owner == 'shopify'
name: Releases and PR for changesets
outputs:
published: ${{ steps.changesets.outputs.published }}
latest: ${{ steps.flags.outputs.latest }}
latest: ${{ env.latest }}
steps:
- name: Flags
id: flags
run: |
# IMPORTANT: Update this variable whenever we move to a new major version:
latest_branch=2022-10
echo "::set-output name=latest::${{ github.ref_name == '2022-10' }}"
echo "latest=${{ github.ref_name == '2022-10' }}" >> $GITHUB_ENV
- name: Checkout the code
uses: actions/checkout@v3
Expand All @@ -37,7 +37,7 @@ jobs:
run: yarn install --frozen-lockfile --ignore-engines

- name: (latest) Create Release Pull Request or Publish
if: steps.flags.outputs.latest == 'true'
if: env.latest == 'true'
id: changesets
uses: changesets/action@v1
with:
Expand All @@ -49,7 +49,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: (legacy) Create Release Pull Request or Publish
if: steps.flags.outputs.latest != 'true'
if: env.latest != 'true'
id: changesets_legacy
uses: changesets/action@v1
with:
Expand All @@ -61,7 +61,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

# note that this runs on every PR that's merged.
- name: (next) Create Release Pull Request or Publish
- name: (next) Publish
id: release_next
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
Expand Down

0 comments on commit e0b154a

Please sign in to comment.