Release on NPM #20
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
# Important information: https://intuit.github.io/auto/docs/build-platforms/github-actions | |
name: Release on NPM | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository under ./libMvrGdtf | |
uses: actions/checkout@v4 | |
with: | |
path: libMvrGdtf | |
fetch-depth: 0 | |
fetch-tags: true | |
# token: ${{ secrets.ADMIN_TOKEN }} | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
registry-url: https://npm.pkg.github.com/ | |
scope: '@mvrdevelopment' | |
- name: Test pushable | |
working-directory: libMvrGdtf | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "[email protected]" | |
git commit --allow-empty -m "Test" | |
git push --dry-run | |
# - name: Build | |
# uses: ./libMvrGdtf/.github/actions/build-lib | |
- name: Create Release | |
env: | |
# This command requires you to be logged in to https://npm.pkg.github.com | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: libMvrGdtf | |
run: | | |
npm install | |
npm run release |