Merge pull request #22 from Supernova-Studio/bump-sdk-version-2.0.22 #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 to NPM | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "src/**" | |
- "images/**" | |
- "package.json" | |
jobs: | |
build: | |
name: Publish to NPM | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/Hydrogen | |
- name: Auth registry | |
run: npm config set "//registry.npmjs.org/:_authToken=${{ secrets.SUPERNOVA_NPM_TOKEN_PUBLISH }}" | |
- name: Install dependencies | |
run: npm i | |
- name: Build | |
run: npm run build:production | |
- name: Publish to NPM | |
run: npm run publish-package |