Skip to content

test: user-agent header can be set (#142) #41

test: user-agent header can be set (#142)

test: user-agent header can be set (#142) #41

Workflow file for this run

name: release-please
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{ secrets.GH_REPO_ACCESS }}
release-type: node
package-name: dc-management-sdk-js
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
with:
cache: 'npm'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: |
npm run doc:html
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/amplience/dc-management-sdk-js.git
npx gh-pages --silent --message "[ci skip] Updates" --dist build/docs --user "Github Actions <github-actions@amplience.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}