Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
RUBY_VERSION: 3.0.3
NODE_VERSION: 19.4.0
NODE_VERSION: 20.11.0

jobs:
build-documentation:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
RUBY_VERSION: 3.0.3
NODE_VERSION: 16.19.0
NODE_VERSION: 20.11.0

jobs:
release:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Create version packages PR or release

on:
release:
types: [published]
workflow_dispatch: # Allow manual triggering of the workflow
inputs:
tag:
description: 'Tag to release'
required: true

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Set tag name
id: set-tag
run: echo "TAG_NAME=${{ github.event.release.tag_name || github.event.inputs.tag }}" >> $GITHUB_ENV

- name: Checkout Repo
uses: actions/checkout@v3
with:
token: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
# Use the tag associated with the release
ref: ${{ env.TAG_NAME }}

- name: Setup Node from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Publish to NPM
run: npm publish --provenance --tag ${{ env.TAG_NAME }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/restyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
RUBY_VERSION: 3.0.3
NODE_VERSION: 19.1.0
NODE_VERSION: 20.11.0

jobs:
build-ts:
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.0
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
2. Run `yarn version` and follow the prompts to choose a version for the package.
3. Update the Changelog to place all Next items under the new version.
4. Push the changes and new tags to GitHub with `git push origin master --follow-tags`.
5. Publish the release on the internal package registry by triggering a deploy on [Shipit](https://shipit.shopify.io/shopify/restyle).
5. Publish the release on [Github Releases](https://github.com/Shopify/restyle/releases) and the package should be automatically published by Github Actions