Skip to content

chore(app): migrate to yarn 4 (#61) #11

chore(app): migrate to yarn 4 (#61)

chore(app): migrate to yarn 4 (#61) #11

Workflow file for this run

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@v4
- uses: actions/setup-node@v4
with:
node-version: '20.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