-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jamie.update-stalebot
- Loading branch information
Showing
298 changed files
with
72,025 additions
and
1,364 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -15,29 +15,14 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 14 | ||
node-version: 18 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Cache Dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
node_modules | ||
package-lock.json | ||
detectors/node/*/node_modules | ||
metapackages/*/node_modules | ||
packages/*/node_modules | ||
plugins/node/*/node_modules | ||
plugins/web/*/node_modules | ||
propagators/*/node_modules | ||
key: release-${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }} | ||
|
||
- name: Build Packages | ||
- name: Install packages | ||
run: | | ||
npm install | ||
npx lerna bootstrap --no-ci | ||
npm ci | ||
- uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
|
@@ -46,6 +31,39 @@ jobs: | |
token: ${{secrets.RELEASE_PR_TOKEN}} | ||
default-branch: main | ||
|
||
# get release PR as we're currently on main | ||
- name: Checkout release PR | ||
# only checkout if a PR has been created, otherwise this will fail | ||
if: ${{ steps.release.outputs.pr }} | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: release-please--branches--main | ||
# use a token so that workflows on the PR run when we push later | ||
token: ${{ secrets.RELEASE_PR_TOKEN }} | ||
|
||
# release-please does not do this on its own, so we do it here instead | ||
- name: Update package-lock.json in PR | ||
# only update if a PR has been created | ||
if: ${{ steps.release.outputs.pr }} | ||
run: | | ||
npm install --ignore-scripts --package-lock-only | ||
git add package-lock.json | ||
git config user.name opentelemetrybot | ||
git config user.email [email protected] | ||
git commit -m "chore: sync package-lock.json" | ||
git push | ||
# get main again | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Rebuild Packages | ||
run: | | ||
npm ci | ||
npm run compile | ||
# Release Please has already incremented versions and published tags, so we just | ||
# need to publish all unpublished versions to npm here | ||
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package | ||
|
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 |
---|---|---|
|
@@ -16,22 +16,19 @@ jobs: | |
env: | ||
PR_LABELS: ${{ toJSON(github.event.pull_request.labels.*.name) }} | ||
outputs: | ||
args: ${{ steps.lerna-args.outputs.args }} | ||
args: ${{ steps.npm-workspace-args.outputs.args }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
# Need lerna to list all packages | ||
- name: Install lerna | ||
run: npm install -g [email protected] | ||
- name: Parse labels into lerna scope arguments | ||
id: lerna-args | ||
- name: Parse labels into npm workspace arguments | ||
id: npm-workspace-args | ||
run: | | ||
OUTPUT=`node scripts/parse-lerna-scopes.mjs "$PR_LABELS"` | ||
OUTPUT=`node scripts/pr-labels-to-npm-workspace-args.mjs "$PR_LABELS"` | ||
echo "args=$OUTPUT" >> $GITHUB_OUTPUT | ||
tav: | ||
uses: ./.github/workflows/test-all-versions.yml | ||
needs: parse-labels | ||
with: | ||
lerna-args: ${{ needs.parse-labels.outputs.args }} | ||
npm-workspace-args: ${{ needs.parse-labels.outputs.args }} | ||
if: ${{ needs.parse-labels.outputs.args != '' }} |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ jobs: | |
tav: | ||
uses: ./.github/workflows/test-all-versions.yml | ||
with: | ||
lerna-args: "" | ||
npm-workspace-args: "" |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
lockfile-version=2 |
Oops, something went wrong.