build(deps): bump currency-codes from 1.5.1 to 2.1.0 (#431) #35
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 to npm | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.author.email, 'hello@openactive.io')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | |
- name: Identify | |
run: | | |
git config user.name OpenActive Bot | |
git config user.email hello@openactive.io | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install | |
run: npm install | |
- name: Test | |
run: npm test | |
- name: Increment Version | |
run: npm version patch | |
- name: Publish to npm | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
- name: Push version update | |
run: git push | |
dispatch: | |
needs: publish | |
strategy: | |
matrix: | |
repo: ['data-model-validator-site', 'openactive-test-suite'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger tooling update | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | |
repository: openactive/${{ matrix.repo }} | |
event-type: data-model-validator-update |