Skip to content

Commit

Permalink
edited workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tishoyanchev committed Sep 27, 2023
1 parent 7f4761c commit 993d56c
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ name: "publish npm"
on: push

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: node
uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: publish
run: npm ci
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.IFX_FEEDBACK_WIDGET}}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.IFX_FEEDBACK_WIDGET}}

0 comments on commit 993d56c

Please sign in to comment.