8000 [pull] main from twilio:main by pull[bot] · Pull Request #11 · AKJUS/twilio-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[pull] main from twilio:main #11

New issue

Have a question about this project? Sign up for a free Git 8000 Hub 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

Merged
merged 1 commit into from
Jun 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
28 changes: 28 additions & 0 deletions .github/scripts/update-cli-core-release-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* eslint-disable no-console */
const fs = require('fs');
const path = require('path');

const updateCliCoreReleaseVersion = async () => {
try {
console.log('Updating the cli-core version');
const cliCoreTagVersion = process.env.CLI_CORE_TAG
// Path to package.json
const packageJsonPath = path.resolve(process.cwd(), 'package.json');

// Read and parse package.json
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));

// Update the desired key
packageJson["dependencies"]["@twilio/cli-core"] = cliCoreTagVersion;

// Write the updated object back to package.json
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf8');

console.info(`Updated package.json: Set twilio-cli-core to '${cliCoreTagVersion}'`);
} catch (error) {
console.error(`Failed to update package.json: ${error.message}`);
}
};
(async () => {
await updateCliCoreRe 8000 leaseVersion();
})();
8 changes: 4 additions & 4 deletions .github/workflows/cli-audit.yml
8000
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [ 18.x, 20.x, 22.x, lts/* ]
node-version: [ 20.x, 22.x, lts/* ]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: make install
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -32,7 +32,7 @@ jobs:
name: Notify Npm Audit Failed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cli-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [ 18.x, 20.x, 22.x, lts/* ]
node-version: [ 20.x, 22.x, lts/* ]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- run: make install
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -38,7 +38,7 @@ jobs:
name: Notify Test Failed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@ on:
homebrew-prerelease:
description: 'HomeBrew prerelease'
default: 'false'
tag-name:
description: 'Cli-core tag to be released in Homebrew (Same as CLI latest tag name)'
required: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, lts/* ]
node-version: [ 20.x, 22.x, lts/* ]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- run: make install
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -34,15 +37,22 @@ jobs:
needs: [test]
steps:
- name: Checkout cli
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
- name: Update Changelog
run: |
bash .github/scripts/commit-api-spec-change-log.sh "${{ github.event.inputs.change-log }}" ${{ github.event.inputs.version-type }}
make install
node .github/scripts/update-cli-core-release-version.js
git add package.json package-lock.json
git commit -m "chore: update cli-core version"
git push origin HEAD
env:
CLI_CORE_TAG: ${{ github.event.inputs.tag-name }}
release:
runs-on: ubuntu-latest
needs: [update-api-definitions-changelog]
needs: [ update-api-definitions-changelog ]
outputs:
tag-name: ${{ steps.semantic-release.outputs.TAG_NAME }}
draft-tag-name: ${{ steps.semantic-release-draft.outputs.TAG_NAME }}
Expand All @@ -68,14 +78,16 @@ jobs:
script: |
core.setFailed('There are no relevant changes, so no new version is released.')
- name: Update release
run: node .github/scripts/update-release.js
run:
node .github/scripts/update-release.js
env:
TAG_NAME: ${{steps.semantic-release.outputs.TAG_NAME}}
RELEASE_BODY: ${{github.event.inputs.change-log}}
REPO_NAME: ${{ github.repository }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUTS: '{ "tag-name": "${{ 5F6C needs.release.outputs.draft-tag-name}}" }'
CLI_CORE_TAG: ${{ github.event.inputs.tag-name }}
- name: Extract branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
Expand Down
Loading
Loading
0