Skip to content

Next Publication

Next Publication #25

Workflow file for this run

name: Next Publication
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-20.04
permissions:
contents: read
id-token: write
env:
working-directory: js-library
dist-directory: js-library/dist
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare and Build JS Library
uses: ./.github/actions/prepare
with:
folder: ${{env.working-directory}}
- name: Package next
working-directory: ${{env.working-directory}}
run: ./scripts/package-next
- name: Set up npm
working-directory: ${{env.dist-directory}}
run: printf '%s\n' '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' registry=https://registry.npmjs.org/ always-auth=true >> .npmrc
- name: Publish
working-directory: ${{env.dist-directory}}
run: npm publish --provenance --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}