Next Publication #22
Workflow file for this run
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: Next Publication | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: read | |
id-token: write | |
env: | |
working-directory: js-library | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set dist-directory path | |
run: echo "DIST_DIRECTORY=${{env.working-directory}}/dist" >> $GITHUB_ENV | |
- name: Prepare and Build JS Library | |
run: ./scripts/build.sh $DIST_DIRECTORY | |
- name: Package next | |
working-directory: ${{env.working-directory}} | |
run: ./scripts/package-next | |
- name: Publish | |
working-directory: $DIST_DIRECTORY | |
run: npm publish --provenance --tag next | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |