Skip to content

Commit

Permalink
feat: add the latest semantic release again
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoanalista committed Jun 28, 2022
1 parent cbc1f94 commit c537654
Show file tree
Hide file tree
Showing 2 changed files with 6,576 additions and 7,213 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,25 @@ jobs:
npm run test
- run: echo "🍏 This job's status is ${{ job.status }}."

deploy-master:
release:
runs-on: ubuntu-latest
needs: Lint-and-Tests
if: github.ref == 'refs/heads/master'
# if: github.ref == 'refs/heads/master'
steps:
- run: echo "🎉 about to run ."
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
- name: semantic-release
run: |
npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- run: job status is ${{ job.status }}."
Loading

0 comments on commit c537654

Please sign in to comment.