Skip to content

Commit

Permalink
Add npm repository for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmskywalker committed Jul 29, 2023
1 parent 169c9f6 commit d3b6114
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
nuget_feed_feedzio: 'https://f.feedz.io/elsa-workflows/elsa-3/nuget/index.json'
nuget_feed_nuget: 'https://api.nuget.org/v3/index.json'
npm_feed_feedzio: 'https://f.feedz.io/elsa-workflows/test/npm/'
npm_feed_nuget: 'https://registry.npmjs.org/'
npm_feed_npm: 'https://registry.npmjs.org/'

jobs:
build:
Expand Down Expand Up @@ -81,6 +81,28 @@ jobs:
npm publish *.tgz
env:
NODE_AUTH_TOKEN: ${{secrets.FEEDZ_API_KEY_TEST}}
publish_npm_preview_npm:
name: Publish npm packages to npmjs.com
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ github.event_name == 'release' || github.event_name == 'push'}}
steps:
- name: Download Packages
uses: actions/download-artifact@v3
with:
name: elsa-studio-npm-packages

- uses: actions/setup-node@v3
with:
node-version: 18.12.1
registry-url: 'https://registry.npmjs.org/'

- run: |
npm publish *.tgz
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_API_KEY}}
# publish_nuget_preview_feedzio:
# name: Publish nuget packages to feedz.io
Expand Down

0 comments on commit d3b6114

Please sign in to comment.