Skip to content
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
27 changes: 17 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
steps:
- uses: actions/checkout@v2
# 'Install yarn v2 dependencies'
- uses: actions/setup-node@v3.1.1
- uses: actions/setup-node@v6
with:
node-version: '22.19.0'
- run: npm install -g "yarn@1.22.5"
Expand All @@ -33,7 +33,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- uses: nick-fields/retry@v2
Expand All @@ -49,7 +49,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 22.x
uses: actions/setup-node@v1
uses: actions/setup-node@v6
with:
node-version: 22.x
- uses: nick-fields/retry@v2
Expand All @@ -68,7 +68,7 @@ jobs:
fetch-depth: 100 # need the history to do a changed files check below (source, origin)
- uses: actions/setup-python@v2
- name: Use Node.js 22.x
uses: actions/setup-node@v1
uses: actions/setup-node@v6
with:
node-version: 22.x
- uses: nick-fields/retry@v2
Expand All @@ -84,6 +84,10 @@ jobs:
build-to-npm:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
packages: write
needs:
- run-mocha
- run-depcheck
Expand All @@ -92,21 +96,24 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v6
with:
node-version: '22.x'
# See: https://docs.npmjs.com/trusted-publishers
# See: https://github.com/actions/setup-node/issues/1445
- name: Set npm to version that supports trusted publishers
run: npm install -g npm@11.5.1
shell: bash
- uses: nick-fields/retry@v2
with:
timeout_minutes: 6
max_attempts: 3
retry_on: error
command: yarn install --immutable
- name: Configure NPM authentication
run: |
yarn config set npmAlwaysAuth true
yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
- name: Publish to yarn/npm
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ''

build-to-github-packages:
if: github.ref == 'refs/heads/main'
Expand All @@ -119,7 +126,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v6
with:
node-version: '22.x'
- uses: nick-fields/retry@v2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Transcend Inc.",
"name": "@transcend-io/internationalization",
"description": "Internationalization configuration for the monorepo",
"version": "2.3.0",
"version": "2.3.1",
"homepage": "https://github.com/transcend-io/internationalization",
"repository": {
"type": "git",
Expand Down
Loading