Publish neon-dappkit-types and neon-dappkit on NPM #2
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: Publish neon-dappkit-types and neon-dappkit on NPM | |
on: workflow_dispatch | |
env: | |
NODE_VERSION: 16.x | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Setup Node Version ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Config Git Properties | |
run: | | |
git config --global user.email ${{ secrets.EMAIL }} | |
git config --global user.name ${{ secrets.AUTO_PUSH_NAME }} | |
- name: Install RushJS | |
run: npm install -g @microsoft/rush | |
- name: Verify Change Logs | |
run: rush change --verify | |
- name: Update package.json version(s) | |
run: rush version --bump | |
- name: Install dependencies | |
run: rush update | |
- name: Build Projects | |
run: rush rebuild | |
- name: Publish Projects | |
run: rush publish --apply --target-branch main --publish --npm-auth-token ${{ secrets.NPM_TOKEN }} --add-commit-details --include-all | |
- name: Commit and Push package.json version update | |
run: | | |
git add . | |
git commit -m "Update package.json version(s)" | |
git push |