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
4 changes: 1 addition & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
strategy:
matrix:
node_version:
- 18 # end of life 2025-04-30
- 20 # end of life 2025-04-30 # please update "Upload coverage file" step if you change this
- 22 # end of life 2027-04-30 # coverage file uploaded from this version
name: build-lint-test - node ${{ matrix.node_version }}
steps:
- name: Check out Git repository
Expand Down Expand Up @@ -57,7 +56,6 @@ jobs:

- name: Upload coverage file
uses: actions/upload-artifact@v4
if: ${{ matrix.node_version == '20' }}
with:
name: coverage-report
path: ./coverage/lcov.info
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ jobs:
release:
name: release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
node-version: 22

- name: Get yarn cache
uses: actions/cache@v3
Expand All @@ -35,9 +38,8 @@ jobs:
- name: Build
run: yarn build

# update registry and tokens with write access for releasing.
# Configure registry for GitHub Packages
- run: rm ./.npmrc
- run: npm config set '//registry.npmjs.org/:_authToken' $NPM_TOKEN
- run: npm config set '//npm.pkg.github.com/:_authToken' $GH_TOKEN
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -46,5 +48,4 @@ jobs:
if: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/beta') }}
run: yarn release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5 changes: 4 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
}
}],
"@semantic-release/npm",
["@semantic-release/npm", {
"npmPublish": true,
"provenance": true
}],
["@semantic-release/exec", {
"successCmd": "yarn publish:github"
}],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/github": "^9.2.4",
"@semantic-release/npm": "^11.0.1",
"@semantic-release/npm": "^13.1.1",
"@typeform/eslint-config": "^6.0.3",
"@types/jest": "^24.0.18",
"axios-mock-adapter": "^1.22.0",
Expand Down
Loading
Loading