Skip to content

Commit

Permalink
Switch to corepack usage of .yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
lipemat committed Jul 6, 2024
1 parent 05e1ad7 commit d69b56b
Show file tree
Hide file tree
Showing 7 changed files with 1,538 additions and 2,403 deletions.
30 changes: 30 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
###################################################
# Local action to set up the action's environment.
#
# Separate action from the main `deploy.yml` configuration
# to allow for separation in the Action log and reuse
# or partial workflow.
#
# @version 1.4.0
#
###################################################

name: Setup Deploy Environment
description: Setup files and server dependencies.

runs:
using: "composite"
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
registry-url: 'https://registry.npmjs.org'
- name: Install yarn
shell: bash
run: corepack enable
- name: Install ts-node
shell: bash
run: npm install -g ts-node
- name: Install node modules
shell: bash
run: yarn install
21 changes: 11 additions & 10 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Publish Beta
env:
VERSION: 3.0.1
NODE_VERSION: '16.14.2'
VERSION: 3.3.0
NODE_VERSION: '20.11.0'
TZ: 'America/Chicago'

on:
push:
Expand All @@ -10,15 +11,15 @@ on:

jobs:
publish:
name: Publish beta on NPM.js
name: Publish Beta on npm.js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_VERSION}}
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: npm publish --tag beta
- name: Checkout the repository
uses: actions/checkout@v4

- uses: ./.github/actions/setup

- name: Publish to NPM
run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
21 changes: 11 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Publish
env:
VERSION: 3.0.1
NODE_VERSION: '16.14.2'
VERSION: 3.3.0
NODE_VERSION: '20.11.0'
TZ: 'America/Chicago'

on:
push:
Expand All @@ -11,15 +12,15 @@ on:

jobs:
publish:
name: Publish on NPM.js
name: Publish on npm.js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_VERSION}}
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: npm publish --access public
- name: Checkout the repository
uses: actions/checkout@v4

- uses: ./.github/actions/setup

- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions .idea/js-boilerplate-gutenberg.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.3.1.cjs

This file was deleted.

4 changes: 0 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
compressionLevel: mixed

enableGlobalCache: true

nodeLinker: node-modules
Expand All @@ -10,5 +8,3 @@ supportedArchitectures:
os:
- current
- linux

yarnPath: .yarn/releases/yarn-4.3.1.cjs
Loading

0 comments on commit d69b56b

Please sign in to comment.