Updated libreoffice tools #80
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, Test and Deploy" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.1 | |
- name: Install and Build | |
run: | | |
npm ci | |
npm run build | |
- name: Test | |
run: npm run test | |
- name: Publish to npm registry | |
continue-on-error: true | |
run: | | |
cd dist | |
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN | |
npm publish | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Get package version | |
id: version | |
run: echo "::set-output name=version::$(npm run --silent version)" | |
- name: Tag snapshot | |
uses: tvdias/github-tagger@v0.0.1 | |
continue-on-error: true | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ steps.version.outputs.version }} | |
- name: Prepare for github pages | |
run: | | |
rm -rf src .gitignore node_modules package-lock.json \ | |
vite.config.js tsconfig.json cypress cypress.config.ts \ | |
tsconfig.node.json | |
touch .nojekyll | |
- name: Deploy to github pages | |
uses: JamesIves/github-pages-deploy-action@4.1.9 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: . # The folder the action should deploy. | |
single-commit : true | |
clean: true |