Bump axios from 1.4.0 to 1.6.0 in /backend/carbon-services-lib #3
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 Services | |
on: | |
push: | |
paths: | |
- backend/carbon-services-lib/** | |
concurrency: | |
group: ${{ github.ref }} | |
jobs: | |
publish_carbon_libs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn install --frozen-lockfile | |
working-directory: backend/carbon-services-lib | |
- if: github.ref == 'refs/heads/main' | |
run: | | |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | |
git config --global user.email "[email protected]" | |
yarn version --patch | |
git push --follow-tags | |
env: | |
CI_COMMIT_MESSAGE: Continuous Integration Version Update | |
CI_COMMIT_AUTHOR: Continuous Integration | |
working-directory: backend/carbon-services-lib | |
- if: github.ref != 'refs/heads/main' | |
run: | | |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | |
git config --global user.email "[email protected]" | |
yarn version --prerelease --preid ${{ github.head_ref || github.ref_name }} | |
git push --follow-tags | |
env: | |
CI_COMMIT_MESSAGE: Continuous Integration Version Update | |
CI_COMMIT_AUTHOR: Continuous Integration | |
working-directory: backend/carbon-services-lib | |
- run: yarn run build && cp package.json ./dist/ | |
working-directory: backend/carbon-services-lib | |
- run: npm publish --access public | |
working-directory: backend/carbon-services-lib/dist | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- if: github.ref == 'refs/heads/main' | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.PAT_TOKEN }} | |
script: | | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: 'xeptagondev', | |
repo: 'carbon-registry', | |
workflow_id: 'service-lib-update.yml', | |
ref: 'develop' | |
}) | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: 'xeptagondev', | |
repo: 'carbon-registry', | |
workflow_id: 'service-lib-update.yml', | |
ref: 'unified' | |
}) | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: 'xeptagondev', | |
repo: 'carbon-transparency', | |
workflow_id: 'service-lib-update.yml', | |
ref: 'develop' | |
}) |