Skip to content

Commit

Permalink
chore: Implement Publish nightly to npm (#9062)
Browse files Browse the repository at this point in the history
**Description:**

This is a follow-up PR of #9061
  • Loading branch information
kdy1 authored Jun 16, 2024
1 parent e7ec1e5 commit 2122756
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 530 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
using: "composite"
steps:
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: "yarn"
Expand Down
7 changes: 3 additions & 4 deletions .github/bot/src/nightly-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ async function main() {

const latest: string = process.argv[2] || coreVersion;

process.stderr.write(`Previous version: ${latest}\n`);

// Bump patch version

const [major, minor, patch] = latest.split(".").map(Number);
Expand All @@ -21,9 +23,6 @@ async function main() {
const newPatch = patch + (latest.includes("-") ? 0 : 1);

const version = `${major}.${minor}.${newPatch}`;

process.stderr.write(`Version: ${version}\n`);

// Nightly version

const date = new Date();
Expand Down Expand Up @@ -51,7 +50,7 @@ async function main() {
}
process.stderr.write(`Nightly version: ${nightlyVersion}\n`);

console.log(`version=${nightlyVersion}`);
process.stdout.write(`version=${nightlyVersion}\n`);
}

main();
Loading

0 comments on commit 2122756

Please sign in to comment.