ci: adds envs for test callable #48
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: Release & Publish | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/**' | ||
- '.github/workflows/release.yaml' | ||
permissions: | ||
contents: read | ||
jobs: | ||
tests: | ||
env: | ||
AUTH1: ${{ secrets.AUTH1 }} | ||
AUTH2: ${{ secrets.AUTH2 }} | ||
MERCHANT_ID: ${{ secrets.MERCHANT_ID }} | ||
AZUL_KEY: ${{ secrets.AZUL_KEY }} | ||
AZUL_CERT: ${{ secrets.AZUL_CERT }} | ||
uses: ./.github/workflows/test.yaml | ||
Check failure on line 21 in .github/workflows/release.yaml GitHub Actions / Release & PublishInvalid workflow file
|
||
release: | ||
name: Release | ||
needs: [tests] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" | ||
- name: Install dependencies | ||
run: npm clean-install | ||
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | ||
run: npm audit signatures | ||
- name: Build | ||
run: npm run build | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release |