forked from reactive-python/reactpy
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 923 Bytes
/
publish-js.yml
File metadata and controls
31 lines (28 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This workflows will upload a Javscript Package using NPM to npmjs.org when a release is created
# For more information see: https://docs.github.com/en/actions/guides/publishing-nodejs-packages
name: Publish Javascript
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- name: Install Specific NPM Version
run: npm install -g npm@8.3
- name: Prepare Release
working-directory: ./src/client
run: |
npm install -g npm@7.22.0
npm install
- name: Publish Release
working-directory: ./src/client
run: npm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}