Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rnd 649 4 #321

Closed
wants to merge 82 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
57bd905
Match lerna.json version to current published version
Nov 7, 2023
5cbc796
[RND-649] Using lerna to handle the version update and update files
andonyns Nov 10, 2023
feccee4
Removing checkout depth from action since it's no longer needed
andonyns Nov 10, 2023
1803174
Update Dockerfile node version
andonyns Nov 13, 2023
7dba18d
Update documentation
andonyns Nov 13, 2023
8cfbdac
Updating node typings
andonyns Nov 13, 2023
fbaf1b4
Allow branch
andonyns Nov 13, 2023
fd77612
remove allow branch from lerna.json
andonyns Nov 13, 2023
4a944fc
Adding code changes on PR to avoid commit directly into main
andonyns Nov 13, 2023
91767ef
simplify for demo
andonyns Nov 13, 2023
09d064a
simplify
andonyns Nov 13, 2023
128353b
simplify
andonyns Nov 13, 2023
f8cd675
simplify
andonyns Nov 13, 2023
c57f70f
Getting version from lerna.json
andonyns Nov 14, 2023
bb7978b
Fix shell
andonyns Nov 14, 2023
bd00e37
v0.4.0-pre.1
github-actions[bot] Nov 14, 2023
578a30c
Merge pull request #13 from andonyns/RND-649
andonyns Nov 14, 2023
ae9e360
Test diff
andonyns Nov 14, 2023
ae23a31
v0.4.0-pre.2
github-actions[bot] Nov 14, 2023
c9de276
Test changes
andonyns Nov 14, 2023
afef360
origin
andonyns Nov 14, 2023
0f125e9
skipping steps
andonyns Nov 14, 2023
c32ec14
Merge pull request #14 from andonyns/RND-649
andonyns Nov 14, 2023
8a429ed
force new changes
andonyns Nov 14, 2023
55be6ac
path
andonyns Nov 14, 2023
c5b46e7
log
andonyns Nov 14, 2023
f8376fb
test another diff
andonyns Nov 14, 2023
6563af5
fix condition
andonyns Nov 14, 2023
bf71429
v0.4.0-pre.3
github-actions[bot] Nov 14, 2023
eaf22c9
test if trigger
andonyns Nov 14, 2023
1fe985c
v0.4.0-pre.4
github-actions[bot] Nov 14, 2023
d1bf066
path
andonyns Nov 14, 2023
56ed151
path
andonyns Nov 14, 2023
5cddddd
v0.4.0-pre.5
github-actions[bot] Nov 14, 2023
62ac023
revision names
andonyns Nov 14, 2023
5e79456
v0.4.0-pre.6
github-actions[bot] Nov 14, 2023
7a81278
log
andonyns Nov 14, 2023
563ff8d
v0.4.0-pre.7
github-actions[bot] Nov 14, 2023
b914a3e
print
andonyns Nov 14, 2023
57b06e7
v0.4.0-pre.8
github-actions[bot] Nov 14, 2023
5daad20
print
andonyns Nov 14, 2023
1844461
v0.4.0-pre.9
github-actions[bot] Nov 14, 2023
6ae1d44
attempt
andonyns Nov 14, 2023
79259cf
origin
andonyns Nov 14, 2023
cc54bb9
Merge pull request #15 from andonyns/RND-649
andonyns Nov 14, 2023
903994a
Add w
andonyns Nov 14, 2023
435d75f
remove quiet
andonyns Nov 14, 2023
ffcdb56
echo
andonyns Nov 14, 2023
263fc96
update
andonyns Nov 14, 2023
b2954c8
v0.4.0-pre.10
github-actions[bot] Nov 14, 2023
81fe7e8
diff head
andonyns Nov 14, 2023
f8887b8
Merge branches 'RND-649' and 'RND-649' of https://github.com/andonyns…
andonyns Nov 14, 2023
83978da
simplify
andonyns Nov 14, 2023
1886b12
backspace
andonyns Nov 14, 2023
b764cc6
path
andonyns Nov 14, 2023
2159e61
path
andonyns Nov 14, 2023
3374d0b
new path
andonyns Nov 14, 2023
69bf7ab
path
andonyns Nov 14, 2023
0568b1c
Merge pull request #16 from andonyns/RND-649
andonyns Nov 14, 2023
5f9ecf8
simplify
andonyns Nov 14, 2023
e49f307
backspace
andonyns Nov 14, 2023
29c623d
path
andonyns Nov 14, 2023
e30946b
path
andonyns Nov 14, 2023
c4676dc
new path
andonyns Nov 14, 2023
b67cb5e
path
andonyns Nov 14, 2023
dad3a74
new pr
andonyns Nov 14, 2023
c70154f
logs
andonyns Nov 14, 2023
fe12ab2
remove lint
andonyns Nov 14, 2023
e237518
use multiline
andonyns Nov 14, 2023
aa6e443
remove test
andonyns Nov 14, 2023
10fb520
is depth needed?
andonyns Nov 14, 2023
0f941d8
restore depth
andonyns Nov 14, 2023
62b9ae9
Merge branch 'main' into RND-649
andonyns Nov 14, 2023
74a32ed
v0.4.0-pre.11
github-actions[bot] Nov 14, 2023
d2acf06
comparing versions
andonyns Nov 14, 2023
6e739ac
v0.4.0-pre.12
github-actions[bot] Nov 14, 2023
4b543e1
another test
andonyns Nov 14, 2023
ae37296
v0.4.0-pre.13
github-actions[bot] Nov 14, 2023
995f11b
typo
andonyns Nov 14, 2023
40e7333
new test
andonyns Nov 14, 2023
4fa8a02
test wo history
andonyns Nov 14, 2023
848e83e
just depth
andonyns Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/on-merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,30 @@ env:
GITHUB_TOKEN: ${{ secrets.PAT_ATTACH_TO_RELEASE }}

jobs:

create-pre-releases:
name: Create Pre-Releases
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
working-directory: eng/version
working-directory: Meadowlark-js
steps:
- name: Checkout the Repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
# Need full Git history for calculating the version number
fetch-depth: 0w

- name: Set Version
id: set-version
run: |
version=v$(cat lerna.json | jq -r .version)
echo "version=$version" >> "$GITHUB_OUTPUT"

- name: Create Meadowlark Pre-Release
shell: pwsh
run: |
npm install
$version = $(node ./bump.js)
if ($LASTEXITCODE -ne 0) {
throw 'Unable to retrieve version number'
}
$version="${{steps.set-version.outputs.version}}"

"Creating pre-release $version" | Out-Host
$body = @{
tag_name = "$version"
tag_name = $version
target_commitish = "main"
name = $version
body = ""
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/on-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
# Need full Git history for calculating the version number
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
Expand All @@ -42,15 +39,8 @@ jobs:
cache-dependency-path: "**/package-lock.json"

- name: Install dependencies
if: ${{ steps.modules-cache.outputs.cache-hit != 'true' }}
run: npm ci

- name: Update version to match tag
working-directory: eng/version
run: |
npm ci --omit dev
node ./set.js ${{ env.REF }}

- name: Transpile to JS
run: npm run build --workspaces

Expand All @@ -74,9 +64,6 @@ jobs:

- name: Publish
run: npm publish --workspaces --tag dev
# NOTE: there are uncommitted version number changes in package.json. No
# problem! Our strategy is to rely on the tag history for version numbers,
# not on package.json.

- name: Generate hash codes for npm tarballs
id: hash-code
Expand Down
Loading