-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (38 loc) · 1.14 KB
/
npm-release-dev.yaml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: KOS-RS NPM Dev Release
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
env:
USER: ${{ secrets.GIT_USER }}
TOKEN: ${{ secrets.GIT_PASS }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: RustUp
uses: klever-io/kos-rs/.github/actions/rustup@develop
with:
with_cache: true
- name: Restore .env file
run: echo $NODES_ENV | base64 -d > packages/kos-sdk/.env.nodes
env:
NODES_ENV: ${{ secrets.NODES_ENV }}
- name: Build
run: make webpack-npm
- name: Set NPM package release version
run: bash .github/actions/npm-package-version.sh
- name: Setup npm module
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org/'
scope: '@klever'
always-auth: true
- name: Publish npm module
run: npm publish ./demo/kos --access public --tag dev
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}