v0.2.2 #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup npm to publish to npmjs | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
registry-url: "https://registry.npmjs.org" | |
- name: Install Dependencies | |
id: install-dependencies | |
run: | | |
npm install | |
- name: Build and Bundle Static Exports | |
working-directory: ./packages/stencil-library | |
id: build-and-bundle-static | |
run: | | |
npm run build | |
- name: Build and Bundle React Exports | |
working-directory: ./packages/react-library | |
id: build-and-bundle-react | |
run: | | |
npm run build | |
- run: npm ci | |
- run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |