Skip to content

V1.3.1 (#15)

V1.3.1 (#15) #27

Workflow file for this run

name: Release
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
test-and-build:
permissions:
contents: write
pull-requests: write
issues: write
packages: write
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for semantic-release
- name: Use Node.js {{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org/"
- run: npm ci
- run: npm run build
- run: npm run test:badges
publish:
needs: [test-and-build]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for semantic-release
- name: Use Node.js {{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org/"
- run: npm ci
# - run: npm run build
# - run: npm run test:badges
# - name: Debug secrets
# run: |
# echo "NPM_TOKEN set? ${{ secrets.NPM_TOKEN != '' }}"
# echo "GH_TOKEN set? ${{ secrets.GH_TOKEN != '' }}"
# echo "NPM_TOKEN: ${{ secrets.NPM_TOKEN }}"
# echo "GH_TOKEN: ${{ secrets.GH_TOKEN }}"
- name: Release with semantic-release
env:

Check failure on line 67 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 67
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
TEST: ${{ secrets.TEST }}
run: echo $TEST