Skip to content

Remove examples dirs before publishing #5

Remove examples dirs before publishing

Remove examples dirs before publishing #5

name: Deploy and Publish Action WebRTC JS SDK
on:
push:
branches:
- master
- remove-examples-publishing
jobs:
publish-ubuntu-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 22
- name: Install dependencies
run: npm install
- name: Run release
run: npm run release
- name: Deploy to Github pages
uses: JamesIves/[email protected]
with:
folder: dist
branch: gh-pages
clean: true
clean-exclude: develop/
- name: Delete examples directories
run: rm -rf examples dist/examples
- name: Deploy to npm packages
uses: JS-DevTools/npm-publish@v1
with:
token: '${{ secrets.NPM_TOKEN }}'
dry-run: true