Merge pull request #432 from steroids/steroids/dev#858 #919
This file contains hidden or 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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: ${{ contains(github.event.head_commit.message, 'Update version') }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ^14.15.0 || ^16.10.0 || >=18.0.0 | |
- run: yarn | |
- run: yarn upgrade @steroidsjs/core | |
- run: yarn tsc | |
- run: yarn docs | |
- run: cp ./{package.json,LICENSE,README.md} dist/ | |
- run: cp src/index.d.ts dist/ | |
- run: cp docs/docs-autogen-result.json dist/ | |
- run: cp docs/locales/en.json dist/ | |
- uses: JS-DevTools/npm-publish@v1 | |
with: | |
package: ./dist/package.json | |
token: ${{ secrets.NPM_TOKEN }} |