fix: add nouvelle caledonie telephone format (#49) #53
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: Release | |
on: | |
push: | |
branches: | |
- 'main' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
commitlint: | |
name: CommitLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout client-application repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: commitlint | |
run: yarn lint.commit | |
build: | |
uses: romain-cambonie/serenity-workflows/.github/workflows/_build-and-upload-artifact.reusable.yml@master | |
with: | |
out-dir: lib | |
validation: | |
uses: romain-cambonie/serenity-workflows/.github/workflows/_validation-matrix.reusable.yml@master | |
with: | |
commands-as-comma-separated-string: 'lint.es,prettier.check,test' | |
publish: | |
name: Publish package to npm | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
- validation | |
steps: | |
- name: Checkout timetable-to-osm-opening-hours repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
- name: Download release artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: bundle | |
# Using a symbolic link because there is no base option to have a config path with semantic-release as of 2022-08-31 | |
- name: Link the semantic release config and release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
run: | | |
ln -s .tooling/.semantic-release/.semantic-release.config.cjs release.config.cjs | |
ln -s .tooling/.semantic-release/.npmignore .npmignore | |
npx semantic-release |