Skip to content

Commit

Permalink
Merge to v4 2024 11 25 (#76)
Browse files Browse the repository at this point in the history
merge v4-beta to v4
  • Loading branch information
mike-ainsel authored Nov 25, 2024
1 parent a8c9782 commit 472aeb1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 24 deletions.
46 changes: 25 additions & 21 deletions .github/workflows/node-simple-pnpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ on:
#
# Checkout settings
#
changed-files-list:
description: |
File/Directory names to check for uncommited changes.
type: string
required: false
checkout-submodules:
description: |
'Submodules' mode for 'actions/checkout' action
Expand All @@ -45,6 +40,7 @@ on:
type: string
required: false
default: ''

#
# Environment settings
#
Expand Down Expand Up @@ -91,6 +87,13 @@ on:
required: false
default: 'pnpm-lock.yaml'

team-id:
description: |
The Team ID to use. This controls the directory where turbo cache entries will be saved
type: string
required: false
default: 'ci'

#
# PNPM settings
#
Expand Down Expand Up @@ -318,7 +321,7 @@ jobs:

steps:
- id: context
uses: milaboratory/github-ci/actions/context@v4
uses: milaboratory/github-ci/actions/context@v4-beta

outputs:
is-release: ${{ steps.context.outputs.is-release }}
Expand All @@ -336,7 +339,7 @@ jobs:
submodules: ${{ inputs.checkout-submodules }}

- id: npm-pkg-metadata
uses: milaboratory/github-ci/actions/shell@v4
uses: milaboratory/github-ci/actions/shell@v4-beta
with:
run: |
NPM_PKG_VERSION="$(cat "${GITHUB_WORKSPACE}/package.json" | jq --raw-output '.version')"
Expand All @@ -357,9 +360,9 @@ jobs:

steps:
- id: context
uses: milaboratory/github-ci/actions/context@v4
uses: milaboratory/github-ci/actions/context@v4-beta

- uses: milaboratory/github-ci/actions/env@v4
- uses: milaboratory/github-ci/actions/env@v4-beta
with:
inputs: ${{ inputs.env }}
secrets: ${{ secrets.env }}
Expand All @@ -370,7 +373,7 @@ jobs:
fetch-depth: '0'

- name: Prepare environment for building a NodeJS application
uses: milaboratory/github-ci/actions/node/prepare-pnpm@v4
uses: milaboratory/github-ci/actions/node/prepare-pnpm@v4-beta
env:
PNPM_VERSION: ${{ needs.metadata.outputs.pnpm-version }}
with:
Expand All @@ -381,13 +384,13 @@ jobs:
npmrc-config: ${{ inputs.npmrc-config }}

- name: Install NodeJS packages with pnpm
uses: milaboratory/github-ci/actions/shell@v4
uses: milaboratory/github-ci/actions/shell@v4-beta
with:
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Check for Changesets
uses: milaboratory/github-ci/actions/shell@v4
uses: milaboratory/github-ci/actions/shell@v4-beta
env:
BRANCH_NAME: ${{ inputs.changeset-default-branch }}
with:
Expand All @@ -411,9 +414,9 @@ jobs:

steps:
- id: context
uses: milaboratory/github-ci/actions/context@v4
uses: milaboratory/github-ci/actions/context@v4-beta

- uses: milaboratory/github-ci/actions/env@v4
- uses: milaboratory/github-ci/actions/env@v4-beta
with:
inputs: ${{ inputs.env }}
secrets: ${{ secrets.env }}
Expand Down Expand Up @@ -445,9 +448,10 @@ jobs:
with:
storage-provider: 's3'
storage-path: ${{ env.AWS_CI_TURBOREPO_S3_BUCKET }}
team-id: ${{ inputs.team-id }}

- name: Prepare environment for building a NodeJS application
uses: milaboratory/github-ci/actions/node/prepare-pnpm@v4
uses: milaboratory/github-ci/actions/node/prepare-pnpm@v4-beta
env:
PNPM_VERSION: ${{ needs.metadata.outputs.pnpm-version }}
with:
Expand All @@ -458,7 +462,7 @@ jobs:
npmrc-config: ${{ inputs.npmrc-config }}

- name: Install NodeJS packages with pnpm
uses: milaboratory/github-ci/actions/shell@v4
uses: milaboratory/github-ci/actions/shell@v4-beta
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPMJS_TOKEN: ${{ env.NPMJS_TOKEN }}
Expand Down Expand Up @@ -502,7 +506,7 @@ jobs:
fi
- name: Run build
uses: milaboratory/github-ci/blocks/node/build-and-test-pnpm@v4
uses: milaboratory/github-ci/blocks/node/build-and-test-pnpm@v4-beta
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPMJS_TOKEN: ${{ env.NPMJS_TOKEN }}
Expand All @@ -523,7 +527,7 @@ jobs:

- name: Run tests
id: test
uses: milaboratory/github-ci/blocks/pl/linux/test-pl-docker-pnpm@v4
uses: milaboratory/github-ci/blocks/pl/linux/test-pl-docker-pnpm@v4-beta
if: inputs.test
env:
PL_ADDRESS: "http://127.0.0.1:6345"
Expand Down Expand Up @@ -558,7 +562,7 @@ jobs:
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"

- name: Commit changed files to main
uses: milaboratory/github-ci/actions/shell@v4
uses: milaboratory/github-ci/actions/shell@v4-beta
if: steps.check-changes.outputs.has-changes == '1'
env:
USER_ID: ${{ steps.get-user-id.outputs.user-id }}
Expand Down Expand Up @@ -615,12 +619,12 @@ jobs:
steps:
- id: search-tags
if: always()
uses: milaboratory/github-ci/actions/strings/json-list@v4
uses: milaboratory/github-ci/actions/strings/json-list@v4-beta
with:
input: |
release
- uses: milaboratory/github-ci/blocks/notify/release@v4
- uses: milaboratory/github-ci/blocks/notify/release@v4-beta
env:
NPM_PKG_VERSION: ${{ needs.metadata.outputs.npm-pkg-version }}
with:
Expand Down
2 changes: 1 addition & 1 deletion actions/node/prepare/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ runs:
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
npm ci
npm ci
2 changes: 1 addition & 1 deletion blocks/node/build/generic/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ runs:
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
npm run ${{ inputs.build-script-name }}
npm run ${{ inputs.build-script-name }}
4 changes: 4 additions & 0 deletions blocks/node/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ runs:
- name: Run build - ${{ inputs.build-script-name }} - (macOS and Linux)
if: inputs.build-before-run-test != 'false'
&& runner.os != 'Windows'

shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
Expand All @@ -143,6 +144,7 @@ runs:
- name: Run build - ${{ inputs.build-script-name }} - (Windows)
if: inputs.build-before-run-test != 'false'
&& runner.os == 'Windows'

shell: pwsh
working-directory: ${{ inputs.working-directory }}
run: |
Expand All @@ -152,6 +154,7 @@ runs:
if: runner.os != 'Windows'
env:
NODE_AUTH_TOKEN: ${{ inputs.npm-auth-token }}

shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
Expand All @@ -161,6 +164,7 @@ runs:
if: runner.os == 'Windows'
env:
NODE_AUTH_TOKEN: ${{ inputs.npm-auth-token }}

shell: pwsh
working-directory: ${{ inputs.working-directory }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion blocks/update-cdn-link/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ runs:
aws s3api put-object \
--bucket "${S3_BUCKET}" \
--key "${S3_KEY}" \
--website-redirect-location "${REDIRECT_LINK}"
--website-redirect-location "${REDIRECT_LINK}"

0 comments on commit 472aeb1

Please sign in to comment.