npm-publish-manual #11
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: npm-publish-manual | |
on: | |
workflow_dispatch: | |
inputs: | |
level: | |
description: "<newversion> | major | minor | patch | prerelease" | |
required: true | |
default: "patch" | |
jobs: | |
publish: | |
if: github.repository == 'adobe/uix-sdk' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up git user | |
uses: fregante/setup-git-user@v1 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install project dependencies | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: Publish SDK packages | |
run: node scripts/release.mjs ${{ github.event.inputs.level }} | |
env: | |
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |