File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Setup Runner
2+ description : Setup Node, Authenticate and install packages
3+
4+ # Adapted from https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
5+
6+ runs :
7+ using : composite
8+ steps :
9+ # Set up Node
10+ - name : Setup node
11+ uses : actions/setup-node@v3
12+ with :
13+ node-version-file : ' .nvmrc'
14+
15+ # clean-install all npm packages
16+ - name : Install
17+ shell : bash -leo pipefail {0}
18+ run : npm ci
Original file line number Diff line number Diff line change 1+ name : ' Publish to JS-SDK'
2+
3+ on :
4+ release :
5+ types : [released]
6+
7+ jobs :
8+ publish-to-npm :
9+ name : Publish to JS-SDK
10+ runs-on : ' ubuntu-latest'
11+ environment : Production
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Setup, Authenticate, and Install
17+ uses : ./.github/actions/setup-runner
18+
19+ - run : npm run test
20+
21+ - run : npm run build
22+
23+ - uses : JS-DevTools/npm-publish@v3
24+ with :
25+ token : ${{ secrets.NPM_TOKEN }}
26+ access : public
27+ dry-run : ${{ vars.DRY_RUN }}
You can’t perform that action at this time.
0 commit comments