-
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
7871879
commit 7eb86c7
Showing
15 changed files
with
102 additions
and
76 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
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 |
---|---|---|
|
@@ -18,17 +18,17 @@ jobs: | |
shell: bash | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- 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 | ||
uses: actions/setup-node@v4 | ||
id: node | ||
with: | ||
node-version: 20.x | ||
check-latest: contains('20.x', '.x') | ||
node-version: 22.x | ||
check-latest: contains('22.x', '.x') | ||
- name: Install Latest npm | ||
uses: ./.github/actions/install-latest-npm | ||
with: | ||
|
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
shell: bash | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
- name: Setup Git User | ||
|
@@ -44,11 +44,11 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
sha: ${{ inputs.check-sha }} | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
id: node | ||
with: | ||
node-version: 20.x | ||
check-latest: contains('20.x', '.x') | ||
node-version: 22.x | ||
check-latest: contains('22.x', '.x') | ||
- name: Install Latest npm | ||
uses: ./.github/actions/install-latest-npm | ||
with: | ||
|
@@ -61,7 +61,7 @@ jobs: | |
run: npm run postlint --ignore-scripts | ||
- name: Conclude Check | ||
uses: LouisBrunner/[email protected] | ||
if: always() | ||
if: steps.create-check.outputs.check-id && always() | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
conclusion: ${{ job.status }} | ||
|
@@ -80,6 +80,9 @@ jobs: | |
- name: macOS | ||
os: macos-latest | ||
shell: bash | ||
- name: macOS | ||
os: macos-13 | ||
shell: bash | ||
- name: Windows | ||
os: windows-latest | ||
shell: cmd | ||
|
@@ -89,13 +92,27 @@ jobs: | |
- 18.0.0 | ||
- 18.x | ||
- 20.x | ||
- 22.x | ||
exclude: | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 16.14.0 | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 16.x | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 18.0.0 | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 18.x | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 20.x | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 22.x | ||
runs-on: ${{ matrix.platform.os }} | ||
defaults: | ||
run: | ||
shell: ${{ matrix.platform.shell }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
- name: Setup Git User | ||
|
@@ -111,7 +128,7 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
sha: ${{ inputs.check-sha }} | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
id: node | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
@@ -128,7 +145,7 @@ jobs: | |
run: npm test --ignore-scripts | ||
- name: Conclude Check | ||
uses: LouisBrunner/[email protected] | ||
if: always() | ||
if: steps.create-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 |
---|---|---|
|
@@ -22,17 +22,17 @@ jobs: | |
shell: bash | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- 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 | ||
uses: actions/setup-node@v4 | ||
id: node | ||
with: | ||
node-version: 20.x | ||
check-latest: contains('20.x', '.x') | ||
node-version: 22.x | ||
check-latest: contains('22.x', '.x') | ||
- name: Install Latest npm | ||
uses: ./.github/actions/install-latest-npm | ||
with: | ||
|
@@ -57,6 +57,9 @@ jobs: | |
- name: macOS | ||
os: macos-latest | ||
shell: bash | ||
- name: macOS | ||
os: macos-13 | ||
shell: bash | ||
- name: Windows | ||
os: windows-latest | ||
shell: cmd | ||
|
@@ -66,19 +69,33 @@ jobs: | |
- 18.0.0 | ||
- 18.x | ||
- 20.x | ||
- 22.x | ||
exclude: | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 16.14.0 | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 16.x | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 18.0.0 | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 18.x | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 20.x | ||
- platform: { name: macOS, os: macos-13, shell: bash } | ||
node-version: 22.x | ||
runs-on: ${{ matrix.platform.os }} | ||
defaults: | ||
run: | ||
shell: ${{ matrix.platform.shell }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- 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 | ||
uses: actions/setup-node@v4 | ||
id: node | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
security-events: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Setup Git User | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
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 |
---|---|---|
|
@@ -17,19 +17,19 @@ jobs: | |
shell: bash | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- 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 | ||
uses: actions/setup-node@v4 | ||
id: node | ||
with: | ||
node-version: 20.x | ||
check-latest: contains('20.x', '.x') | ||
node-version: 22.x | ||
check-latest: contains('22.x', '.x') | ||
- name: Install Latest npm | ||
uses: ./.github/actions/install-latest-npm | ||
with: | ||
|
@@ -49,7 +49,7 @@ jobs: | |
id: flags | ||
run: | | ||
dependabot_dir="${{ steps.metadata.outputs.directory }}" | ||
if [[ "$dependabot_dir" == "/" ]]; then | ||
if [[ "$dependabot_dir" == "/" || "$dependabot_dir" == "/main" ]]; then | ||
echo "workspace=-iwr" >> $GITHUB_OUTPUT | ||
else | ||
# strip leading slash from directory so it works as a | ||
|
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 |
---|---|---|
|
@@ -20,19 +20,19 @@ jobs: | |
shell: bash | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- 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 | ||
uses: actions/setup-node@v4 | ||
id: node | ||
with: | ||
node-version: 20.x | ||
check-latest: contains('20.x', '.x') | ||
node-version: 22.x | ||
check-latest: contains('22.x', '.x') | ||
- name: Install Latest npm | ||
uses: ./.github/actions/install-latest-npm | ||
with: | ||
|
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 |
---|---|---|
|
@@ -30,19 +30,19 @@ jobs: | |
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ fromJSON(inputs.releases)[0].tagName }} | ||
- 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 | ||
uses: actions/setup-node@v4 | ||
id: node | ||
with: | ||
node-version: 20.x | ||
check-latest: contains('20.x', '.x') | ||
node-version: 22.x | ||
check-latest: contains('22.x', '.x') | ||
- name: Install Latest npm | ||
uses: ./.github/actions/install-latest-npm | ||
with: | ||
|
@@ -54,20 +54,14 @@ jobs: | |
- name: Publish | ||
env: | ||
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | ||
RELEASES: ${{ inputs.releases }} | ||
run: | | ||
EXIT_CODE=0 | ||
function each_release { | ||
if npm publish --provenance --tag="$1"; then | ||
echo 0 | ||
else | ||
echo 1 | ||
fi | ||
} | ||
for release in $(echo '${{ inputs.releases }}' | jq -r '.[] | @base64'); do | ||
for release in $(echo $RELEASES | jq -r '.[] | @base64'); do | ||
PUBLISH_TAG=$(echo "$release" | base64 --decode | jq -r .publishTag) | ||
STATUS=$(each_release "$PUBLISH_TAG") | ||
npm publish --provenance --tag="$PUBLISH_TAG" | ||
STATUS=$? | ||
if [[ "$STATUS" -eq 1 ]]; then | ||
EXIT_CODE=$STATUS | ||
fi | ||
|
Oops, something went wrong.