Skip to content

Commit

Permalink
chore: allow to configure publication
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Jul 14, 2024
1 parent ad69f59 commit b5fdcdd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Publish package

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
publish_to_npm:
description: 'Publish package to NPM'
required: false
type: boolean
default: true
publish_to_jsr:
description: 'Publish package to JSR'
required: false
type: boolean
default: true

permissions:
contents: write
Expand Down Expand Up @@ -36,6 +48,7 @@ jobs:
uses: denoland/setup-deno@v1

- name: Publish package to JSR
if: ${{ github.event.inputs.publish_to_jsr }}
run: deno publish --allow-dirty --unstable-sloppy-imports --allow-slow-types

- name: Install Node
Expand All @@ -46,6 +59,7 @@ jobs:
scope: "@gramio"

- name: Publish package to NPM
if: ${{ github.event.inputs.publish_to_npm }}
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"undici": "^6.19.2"
},
"overrides": {
"@gramio/types": "^7.7.0"
"@gramio/types": "^7.7.1"
},
"files": [
"dist"
Expand Down

0 comments on commit b5fdcdd

Please sign in to comment.