-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.02 KB
/
publish-npm-package.yml
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
name: Publish npm package
on:
release:
types: [created]
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: publish-npm-package
cancel-in-progress: false
env:
VITE_BROWSERSTACK_USERNAME: "${{ secrets.VITE_BROWSERSTACK_USERNAME }}"
VITE_BROWSERSTACK_KEY: "${{ secrets.VITE_BROWSERSTACK_KEY }}"
jobs:
publish-node-lts:
name: "node.js lts"
runs-on: ubuntu-latest
environment: BrowserStackEnv
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
registry-url: "https://registry.npmjs.org"
cache: "npm"
- name: Build
run: |
npm install
npm run build
npm test
- name: npm publish
run: |
npm publish
env:
NODE_AUTH_TOKEN: "${{ secrets.NPM_PUBLISH_TOKEN }}"