fixed the push state issue in examples #16
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 | |
on: | |
push: | |
branches: [ main ] | |
tags: [ v* ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install | |
run: npm ci | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
registry-url: https://registry.npmjs.org/ | |
- name: build package | |
run: npm run build | |
- name: test package | |
run: npm test | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action/composite@v2 | |
if: always() | |
with: | |
files: | | |
package/tests/.artifacts/results.xml | |
# TODO: Changelog generation, version tagging, publish |