Merge branch 'master' of https://github.com/thegreataint/tacstory #18
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
# .github/workflows/semantic.yml | |
# Workflow name | |
name: Semantic release | |
on: push | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # 👈 Required to retrieve git history | |
#- name: Setup Node.js | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: 12 | |
- name: Install dependencies | |
run: yarn | |
- name: Build app | |
run: yarn build | |
# Verify Authentication with npm | |
- name: Authenticate with npm | |
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} | |
- name: Semantic release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release |