-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (36 loc) · 1.16 KB
/
npm-publish.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
name: npm-publish
on:
push:
branches:
- "main" # Change this if not your default branch
paths:
- 'package.json'
- '.github/workflows/npm-publish.yml'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: install
run: yarn install
- run: (cd demo-react/app; yarn install)
- run: (cd demo-react/iframe; yarn install)
- run: yarn run test -- --headless
- name: Check what user is logged in
run: npm whoami
env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
- name: Publish package on NPM 📦
run: npm whoami && npm whoami && npm publish --dry-run && npm publish --verbose
env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
# - uses: JS-DevTools/npm-publish@v3
# with:
# token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
# access: 'public'