-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: postinstall for dependabot template-oss PR
- Loading branch information
1 parent
5b16b3a
commit d4db1ab
Showing
6 changed files
with
25 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,12 @@ | |
name: CI - Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
required: true | ||
type: string | ||
default: main | ||
workflow_call: | ||
inputs: | ||
ref: | ||
|
@@ -23,7 +29,7 @@ jobs: | |
steps: | ||
- name: Get Workflow Job | ||
uses: actions/github-script@v6 | ||
|
||
if: inputs.check-sha | ||
id: check-output | ||
env: | ||
JOB_NAME: "Lint All" | ||
|
@@ -57,7 +63,7 @@ jobs: | |
- name: Create Check | ||
uses: LouisBrunner/[email protected] | ||
id: check | ||
|
||
if: inputs.check-sha | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
status: in_progress | ||
|
@@ -88,7 +94,7 @@ jobs: | |
run: npm run postlint --ignore-scripts | ||
- name: Conclude Check | ||
uses: LouisBrunner/[email protected] | ||
if: always() | ||
if: steps.check.outputs.check_id && always() | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
conclusion: ${{ job.status }} | ||
|
@@ -124,7 +130,7 @@ jobs: | |
steps: | ||
- name: Get Workflow Job | ||
uses: actions/github-script@v6 | ||
|
||
if: inputs.check-sha | ||
id: check-output | ||
env: | ||
JOB_NAME: "Test All" | ||
|
@@ -158,7 +164,7 @@ jobs: | |
- name: Create Check | ||
uses: LouisBrunner/[email protected] | ||
id: check | ||
|
||
if: inputs.check-sha | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
status: in_progress | ||
|
@@ -203,7 +209,7 @@ jobs: | |
run: npm test --ignore-scripts | ||
- name: Conclude Check | ||
uses: LouisBrunner/[email protected] | ||
if: always() | ||
if: steps.check.outputs.check_id && always() | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
conclusion: ${{ job.status }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,56 +14,6 @@ on: | |
- cron: "0 9 * * 1" | ||
|
||
jobs: | ||
engines: | ||
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }} | ||
if: github.repository_owner == 'npm' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- name: Linux | ||
os: ubuntu-latest | ||
shell: bash | ||
node-version: | ||
- 14.17.0 | ||
- 16.13.0 | ||
- 18.0.0 | ||
runs-on: ${{ matrix.platform.os }} | ||
defaults: | ||
run: | ||
shell: ${{ matrix.platform.shell }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Git User | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "npm CLI robot" | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Update Windows npm | ||
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows | ||
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.')) | ||
run: | | ||
curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz | ||
tar xf npm-7.5.4.tgz | ||
cd package | ||
node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz | ||
cd .. | ||
rmdir /s /q package | ||
- name: Install npm@7 | ||
if: startsWith(matrix.node-version, '10.') | ||
run: npm i --prefer-online --no-fund --no-audit -g npm@7 | ||
- name: Install npm@latest | ||
if: ${{ !startsWith(matrix.node-version, '10.') }} | ||
run: npm i --prefer-online --no-fund --no-audit -g npm@latest | ||
- name: npm Version | ||
run: npm -v | ||
- name: Install Dependencies | ||
run: npm i --ignore-scripts --no-audit --no-fund --engines-strict | ||
|
||
lint: | ||
name: Lint | ||
if: github.repository_owner == 'npm' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
branches: | ||
- main | ||
- latest | ||
- release/v* | ||
|
||
permissions: | ||
contents: write | ||
|
@@ -88,7 +89,7 @@ jobs: | |
return commentId | ||
- name: Get Workflow Job | ||
uses: actions/github-script@v6 | ||
if: steps.release.outputs.pr-number | ||
if: steps.release.outputs.pr-sha | ||
id: check-output | ||
env: | ||
JOB_NAME: "Release" | ||
|
@@ -122,7 +123,7 @@ jobs: | |
- name: Create Check | ||
uses: LouisBrunner/[email protected] | ||
id: check | ||
if: steps.release.outputs.pr-number | ||
if: steps.release.outputs.pr-sha | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
status: in_progress | ||
|
@@ -179,7 +180,7 @@ jobs: | |
echo "::set-output name=sha::$(git rev-parse HEAD)" | ||
- name: Get Workflow Job | ||
uses: actions/github-script@v6 | ||
|
||
if: steps.commit.outputs.sha | ||
id: check-output | ||
env: | ||
JOB_NAME: "Update - Release" | ||
|
@@ -213,7 +214,7 @@ jobs: | |
- name: Create Check | ||
uses: LouisBrunner/[email protected] | ||
id: check | ||
|
||
if: steps.commit.outputs.sha | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
status: in_progress | ||
|
@@ -222,7 +223,7 @@ jobs: | |
output: ${{ steps.check-output.outputs.result }} | ||
- name: Conclude Check | ||
uses: LouisBrunner/[email protected] | ||
if: always() | ||
if: needs.release.outputs.check-id && always() | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
conclusion: ${{ job.status }} | ||
|
@@ -260,7 +261,7 @@ jobs: | |
echo "::set-output name=result::$result" | ||
- name: Conclude Check | ||
uses: LouisBrunner/[email protected] | ||
if: always() | ||
if: needs.update.outputs.check-id && always() | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
conclusion: ${{ steps.needs-result.outputs.result }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters