Skip to content

Commit

Permalink
add permission to write
Browse files Browse the repository at this point in the history
  • Loading branch information
gvkhna committed May 29, 2024
1 parent 5191d97 commit 458761d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: release cli
env:
BUILD_PATH: './cli/'

permissions:
contents: write

on:
release:
types: [published]
Expand Down
6 changes: 4 additions & 2 deletions cli/warpdive/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const fs = require('fs')
const path = require('path')
const zlib = require('zlib')
const https = require('https')
const packageJson = require('./package.json')

// Lookup table for all platforms and binary distribution packages
const BINARY_DISTRIBUTION_PACKAGES = {
Expand All @@ -14,10 +15,11 @@ const BINARY_DISTRIBUTION_PACKAGES = {
}

// Adjust the version you want to install. You can also make this dynamic.
const BINARY_DISTRIBUTION_VERSION = '1.0.0'
// const BINARY_DISTRIBUTION_VERSION = '1.0.0'
const BINARY_DISTRIBUTION_VERSION = packageJson.version

// Windows binaries end with .exe so we need to special case them.
const binaryName = process.platform === 'win32' ? 'my-binary.exe' : 'my-binary'
const binaryName = process.platform === 'win32' ? 'warpdive.exe' : 'warpdive'

// Determine package name for this platform
const platformSpecificPackageName = BINARY_DISTRIBUTION_PACKAGES[`${process.platform}-${process.arch}`]
Expand Down
15 changes: 0 additions & 15 deletions cli/warpdive/package.json

This file was deleted.

0 comments on commit 458761d

Please sign in to comment.