release: v1.8.0 #40
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: Push new version to dist branch | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Push new version to dist branch | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 18.x | |
- name: npm install and build | |
run: | | |
npm ci | |
npm run build:prod | |
- name: Push new version | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: dist | |
FOLDER: dist | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |