Skip to content

Commit

Permalink
Merge pull request #108 from frouriojs/develop
Browse files Browse the repository at this point in the history
release v1.2.0
  • Loading branch information
solufa authored Nov 14, 2024
2 parents efc98d0 + 2337bfb commit aa4c860
Show file tree
Hide file tree
Showing 17 changed files with 1,124 additions and 1,136 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on: [push, pull_request]

jobs:
test:
name: "Test on Node:${{ matrix.node-version }} OS:${{ matrix.os }}"
name: 'Test on Node:${{ matrix.node-version }} OS:${{ matrix.os }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18, 20]
node-version: [20, 22]
os: [ubuntu-latest]
include:
- os: windows-latest
node-version: 20
node-version: 22
steps:
- uses: actions/checkout@v3
- name: setup Node.js ${{ matrix.node-version }}
Expand All @@ -22,7 +22,7 @@ jobs:
- uses: actions/cache@v2
id: npm-cache
with:
path: "node_modules"
path: 'node_modules'
key: ${{ runner.os }}-node-v${{ matrix.node-version }}-npm-${{ hashFiles('package-lock.json') }}
- run: npm install
if: steps.npm-cache.outputs.cache-hit != 'true'
Expand All @@ -35,18 +35,21 @@ jobs:
release:
runs-on: ubuntu-latest
needs: test
permissions:
contents: read
id-token: write
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
node-version: 22
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v2
id: npm-cache
with:
path: "node_modules"
path: 'node_modules'
key: ${{ runner.os }}-node-v20-npm-${{ hashFiles('package-lock.json') }}
- run: npm install
if: steps.npm-cache.outputs.cache-hit != 'true'
Expand All @@ -55,6 +58,6 @@ jobs:
VERSION="$(node -e 'console.log(process.argv[1].match(/^refs\/tags\/v(\d+\.\d+\.\d+)$/)[1])' "${{ github.ref }}")"
node -e 'console.log(JSON.stringify({...require("./package.json"),version:process.argv[1]}, null, 2))' "$VERSION" | tee ./tmp-package.json
mv ./tmp-package.json ./package.json
- run: npm publish
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
release:
@echo ${VERSION} | grep -E "^[0-9]+\.[0-9]+\.[0-9]+(-r[0-9]+)?$$"
git fetch origin main
git tag v${VERSION} FETCH_HEAD
git push origin v${VERSION}
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export default tseslint.config(
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
Expand Down
Loading

0 comments on commit aa4c860

Please sign in to comment.