chore(deps-dev): bump prettier from 3.4.1 to 3.4.2 #161
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: "Tests" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
Test: | |
strategy: | |
matrix: | |
node_version: ["lts/*", "*"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node_version }} | |
check-latest: true | |
- name: Install Dependencies | |
run: npm ci | |
- name: Test π©π½βπ» | |
run: npm run test | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Lint β¨ | |
run: npm run test:lint | |
Format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Format π | |
run: npm run test:format | |
Release: | |
# This will only work if the version in package.json is updated | |
needs: [Test, Lint, Format] | |
if: | | |
github.ref == 'refs/heads/main' && | |
github.event.repository.fork == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
registry-url: https://registry.npmjs.org/ | |
- name: Install Dependencies | |
run: npm ci | |
- name: Publish π | |
run: | | |
PUBLISHED=$(npm info @markedjs/testutils version) | |
CURRENT=$(node -p "require('./package.json').version") | |
echo "$PUBLISHED -> $CURRENT" | |
if [ $PUBLISHED != $CURRENT ] | |
then | |
npm publish | |
else | |
echo "No new version" | |
fi | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |