Skip to content

Commit 7fb98ff

Browse files
committed
Bump Node to 20 and allow releasing from GH Actions
1 parent 5fbb3f4 commit 7fb98ff

File tree

6 files changed

+40
-4
lines changed

6 files changed

+40
-4
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
RUBY_VERSION: 3.0.3
11-
NODE_VERSION: 19.4.0
11+
NODE_VERSION: 20.11.0
1212

1313
jobs:
1414
build-documentation:

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
env:
88
RUBY_VERSION: 3.0.3
9-
NODE_VERSION: 16.19.0
9+
NODE_VERSION: 20.11.0
1010

1111
jobs:
1212
release:

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Create version packages PR or release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
id-token: write
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v3
20+
with:
21+
token: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
22+
23+
- name: Setup Node from .nvmrc
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version-file: '.nvmrc'
27+
28+
- name: Install dependencies
29+
run: yarn install --frozen-lockfile
30+
31+
- name: Publish to NPM
32+
run: npm publish --provenance --tag --latest
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}

.github/workflows/restyle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
RUBY_VERSION: 3.0.3
11-
NODE_VERSION: 19.1.0
11+
NODE_VERSION: 20.11.0
1212

1313
jobs:
1414
build-ts:

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.11.0

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
2. Run `yarn version` and follow the prompts to choose a version for the package.
55
3. Update the Changelog to place all Next items under the new version.
66
4. Push the changes and new tags to GitHub with `git push origin master --follow-tags`.
7-
5. Publish the release on the internal package registry by triggering a deploy on [Shipit](https://shipit.shopify.io/shopify/restyle).
7+
5. Publish the release on [Github Releases](https://github.com/Shopify/restyle/releases) and the package should be automatically published by Github Actions

0 commit comments

Comments
 (0)