-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 905 Bytes
/
publish-embed.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
name: Publish Embed assets to NPM
on:
push:
branches: [main]
paths:
- 'packages/embed/src/scripts/**'
- 'packages/embed/src/styles/**'
- 'packages/embed/package.publish.json'
- 'packages/embed/README.publish.md'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install projects dependencies
uses: bahmutov/npm-install@v1
- name: Publish to NPM
working-directory: packages/embed
run: |
yarn build:cdn
cp package.publish.json build/package.json
cp README.publish.md build/README.md
cd build
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
npm publish --access=public