Skip to content

Commit

Permalink
Fix packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickheeney committed Mar 24, 2024
1 parent e34d117 commit fb13e7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/module-packaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const log = require('npmlog')
const fs = require('fs')
const path = require('path')
const pkg = require('../package.json')
const reponame = new URL(pkg.homepage).pathname
const repoUrl = new URL(pkg.homepage).pathname
.replace('.git', '')
.replace(/^\/+/, '')
const versionTag = process.env['NODE_LIBCURL_VERSION_TAG'] || 'v' + pkg.version //current version of the package.
const tag = process.env['NODE_LIBCURL_VERSION_TAG'] || 'v' + pkg.version //current version of the package.

const args = process.argv.splice(2, 2)
const validArgs = ['--publish', '--unpublish']
Expand All @@ -37,7 +37,7 @@ const octo = new Octokit({
auth: process.env['NODE_LIBCURL_GITHUB_TOKEN'],
})

const [owner, repo] = reponame.split('/')
const [owner, repo] = repoUrl.split('/')
const commands = {
publish: publish,
unpublish: unpublish,
Expand Down

0 comments on commit fb13e7e

Please sign in to comment.