Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [18.x,20.x]
version: [22.x]
name: Lint, build and test
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
name: Prerelease
permissions:
# Needed for npm Trusted Publishing
id-token: write
# Needed for semantic-release
contents: write
pull-requests: write
issues: write
on:
push:
branches:
Expand All @@ -7,6 +14,7 @@ jobs:
release:
name: Prerelease
runs-on: ubuntu-latest
environment: publish
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -15,14 +23,16 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
- name: Ensure npm 11.5.1 or later for trusted publishing
run: |
npm install -g [email protected]
- name: Install dependencies
run: yarn
- name: Build library
run: yarn build:prod
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: yarn run semantic-release
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
name: Release
permissions:
# Needed for npm Trusted Publishing
id-token: write
# Needed for semantic-release
contents: write
pull-requests: write
issues: write
on:
push:
branches:
Expand All @@ -7,6 +14,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: publish
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -15,15 +23,17 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
- name: Ensure npm 11.5.1 or later for trusted publishing
run: |
npm install -g [email protected]
- name: Install dependencies
run: yarn
- name: Build library
run: yarn build:prod
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: yarn run semantic-release
- name: Rebase master
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@bitgo/avalanchejs",
"name": "@bitgo-forks/avalanchejs",
"version": "4.0.5",
"description": "Avalanche Platform JS Library",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -49,7 +49,7 @@
"@semantic-release/commit-analyzer": "11.1.0",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "9.2.6",
"@semantic-release/npm": "11.0.2",
"@semantic-release/npm": "13.1.1",
"@types/jest": "29.5.11",
"@types/node": "18.18.7",
"@typescript-eslint/eslint-plugin": "6.18.1",
Expand Down
Loading
Loading