Merge pull request #1351 from kevinchappell/dependabot/npm_and_yarn/j… #100
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [12] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Nodejs ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
- name: Install dependencies | |
env: | |
CI: true | |
run: npm install | |
- name: Build the plugin | |
run: npm run build | |
- name: Publish the plugin | |
if: success() | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
FORMBUILDER_WEBSITE_DIR: ${{ secrets.FORMBUILDER_WEBSITE_DIR }} | |
FORMBUILDER_WEBSITE_REPO: ${{ secrets.FORMBUILDER_WEBSITE_REPO }} | |
run: npx semantic-release |