Skip to content

Commit

Permalink
fix: Upgrade dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Instead of symlinks, wrappers .cmd and .ps1
are created in .bin on Windows. Although it should not affect
any scenario, it is a change in the file names nevertheless.
  • Loading branch information
prantlf committed Dec 12, 2023
1 parent ba95c7d commit 56710cf
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 27 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
cache: 'pnpm'
- name: Install Dependencies
run: pnpm i --frozen-lockfile --no-verify-store-integrity
- name: Test
run: |
node_modules/.bin/newchanges -V
node_modules/.bin/newchanges -V
windows:
runs-on: windows-latest
Expand All @@ -46,6 +50,18 @@ jobs:
cache: 'pnpm'
- name: Install Dependencies
run: pnpm i --frozen-lockfile --no-verify-store-integrity
env:
DEBUG: '*'
- name: Test CMD
shell: cmd
run: |
node_modules\.bin\newchanges -V
node_modules\.bin\newchanges -V
- name: Test PowerShell
shell: pwsh
run: |
.\node_modules\.bin\newchanges -V
.\node_modules\.bin\newchanges -V
linux-and-release:
needs:
Expand All @@ -66,7 +82,11 @@ jobs:
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: 'DEBUG=* pnpm i --frozen-lockfile --no-verify-store-integrity'
run: pnpm i --frozen-lockfile --no-verify-store-integrity
- name: Test
run: |
node_modules/.bin/newchanges -V
node_modules/.bin/newchanges -V
- name: Publish
if: ${{ github.ref_name == 'master' }}
uses: cycjimmy/semantic-release-action@v4
Expand Down
12 changes: 2 additions & 10 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,13 @@ import { installLink } from 'link-bin-executable'

const __dirname = dirname(fileURLToPath(import.meta.url))

const name = 'newchanges'
const repository = 'prantlf/v-newchanges'
const platformSuffixes = {
linux: 'linux',
darwin: 'macos',
win32: 'windows'
}

try {
const { executable, version } = await grab({
repository, platformSuffixes, targetDirectory: __dirname, unpackExecutable: true
repository: 'prantlf/v-newchanges', targetDirectory: __dirname, unpackExecutable: true
})
console.log('downloaded and unpacked "%s" version %s', executable, version)

await installLink({ name, packageDirectory: __dirname })
await installLink({ name: 'newchanges', packageDirectory: __dirname })
} catch (err) {
console.error(err)
process.exitCode = 1
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
]
},
"dependencies": {
"grab-github-release": "^0.1.1",
"link-bin-executable": "^0.3.1"
"grab-github-release": "^0.2.0",
"link-bin-executable": "^1.0.2"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"denolint": "2.0.14"
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"denolint": "^2.0.14"
},
"keywords": [
"changes",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 56710cf

Please sign in to comment.