support for RFC9380 DST G1 scheme #97
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: build | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
tags: | |
- .* | |
jobs: | |
build_test_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Install nodejs 🔧 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
- name: Build and test app 🔧 | |
run: | | |
npm ci | |
npm run build:ci | |
- name: Copy relevant documentation into the build folder | |
run: cp package.json README.md LICENSE-APACHE LICENSE-MIT ./dist | |
- name: Publish to npmjs | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
# dry run if on a side branch | |
dry-run: ${{ github.ref != 'refs/heads/master' }} | |
# don't try and deploy if versions haven't changed | |
check-version: true | |
package: dist/package.json | |
if: github.event_name != 'pull_request' |