Skip to content

Commit

Permalink
fix(cli): publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marabesi committed Aug 11, 2024
1 parent 741b708 commit f556079
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Publish Package to npmjs

on:
workflow_dispatch:
release:
types: [published]

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -14,17 +12,21 @@ jobs:
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
- name: Set Environment Variables
uses: tw3lveparsecs/[email protected]
with:
envFilePath: ./envvars.for.actions

- name: Publish to npm
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'

- name: Publish to npm
run: |
npm i --workspaces
npm run compile --workspace=cli
Expand Down

0 comments on commit f556079

Please sign in to comment.