Skip to content

6.1.3

6.1.3 #67

Workflow file for this run

name: Publish (NPM)
on:
push:
tags:
- v*
jobs:
publish:
runs-on: ubuntu-20.04
outputs:
packageVersion: ${{ steps.outputVersion.outputs.packageVersion }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.OO_CI_AT }}
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: npm publish
- name: Output version
id: outputVersion
run: echo "packageVersion=$(cat package.json | jq -r '.version')" >> $GITHUB_OUTPUT
trigger-cdn-deploy:
needs: publish
uses: ./.github/workflows/release-deploy.yml
with:
version: ${{ needs.publish.outputs.packageVersion }}
secrets: inherit