Skip to content

Commit

Permalink
Update dependencies; enforce Node 18 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 12, 2023
1 parent c863ed5 commit adc7ca2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/npm-publish.yml
Expand Up @@ -20,20 +20,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 20
- uses: actions/setup-node@v3
with:
node-version: 14.x
registry-url: 'https://registry.npmjs.org'
node-version: 18
registry-url: https://registry.npmjs.org
- run: npm ci || npm install
- uses: fregante/setup-git-user@v1
- run: npm version ${{ github.event.inputs.Version }}
- uses: fregante/setup-git-user@v2
- name: Create version
# Get the generated version, this enables support for keywords: `npm version patch`
run: |
VERSION="$(npm version "${{ github.event.inputs.Version }}")"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push --follow-tags
- uses: fregante/release-with-changelog@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude: true
- run: gh release create "$VERSION" --generate-notes
env:
GH_TOKEN: ${{ github.token }}
13 changes: 8 additions & 5 deletions package.json
Expand Up @@ -19,6 +19,9 @@
"funding": "https://github.com/sponsors/fregante",
"license": "MIT",
"author": "Federico Brigante <[email protected]> (https://fregante.com)",
"exports": "./index.js",
"main": "./index.js",
"types": "./index.d.ts",
"files": [
"index.js",
"index.d.ts"
Expand All @@ -34,15 +37,15 @@
}
},
"dependencies": {
"github-reserved-names": "^2.0.4"
"github-reserved-names": "^2.0.5"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^3.0.1",
"ava": "^4.3.3",
"tsd": "^0.23.0",
"@sindresorhus/tsconfig": "^4.0.0",
"ava": "^5.3.1",
"tsd": "^0.29.0",
"xo": "^0.56.0"
},
"engines": {
"node": ">=14.0.0"
"node": ">=18"
}
}
5 changes: 4 additions & 1 deletion tsconfig.json
@@ -1,3 +1,6 @@
{
"extends": "@sindresorhus/tsconfig"
"extends": "@sindresorhus/tsconfig",
"compilerOptions": {
"target": "ES2022",
}
}

0 comments on commit adc7ca2

Please sign in to comment.