chore(release): 18.2.0 #39
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: Build & deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci --force | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build | |
- name: Build (copy assets) | |
run: npm run build:copy-assets | |
- name: Deploy Github Pages | |
if: success() | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: dist/elements-demo | |
- name: Publish to NPM | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
access: public | |
check-version: true | |
package: dist/elements/package.json |