Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //YAML Workflow Github Action Script to run a production build as soon as a commit is made.
- name: Release
- on:
- push:
- branches: [main]
- jobs:
- release:
- name: Release
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- - name: Setup Node.js
- uses: actions/setup-node@v2
- with:
- node-version: 16.x
- - name: Install dependencies
- run: yarn install --frozen-lockfile
- - name: Install semantic-release extra plugins
- run: yarn add -D @semantic-release/changelog @semantic-release/git
- # - name: Lint
- # run: npm run lint-fix
- - name: Test
- run: yarn test
- - name: Build
- run: yarn build
- - name: Release
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npx semantic-release
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement