looks ready to test with live creds #1
Workflow file for this run
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: Test and Deploy | ||
on: push | ||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
registry-url: 'https://registry.npmjs.org' | ||
Check failure on line 11 in .github/workflows/test-and-deploy.yml GitHub Actions / Test and DeployInvalid workflow file
|
||
with: | ||
node-version: 16 | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm test | ||
deploy: | ||
needs: [run-tests] | ||
runs-on: ubuntu-latest | ||
if: ${{ github.ref_name == 'master' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
registry-url: 'https://registry.npmjs.org' | ||
with: | ||
node-version: 16 | ||
- run: npm install | ||
- run: npm run build | ||
- run: npx semantic-release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |