Skip to content

Commit

Permalink
fix: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
matubu committed Jul 30, 2023
1 parent 5a7c87c commit 3d31d33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ jobs:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # v3
- uses: actions/setup-node@v3 # v3
- name: Setup Repo
uses: actions/checkout@v3 # v3

- name: Setup Node
uses: actions/setup-node@v3 # v3
with:
cache: npm
node-version: lts/*
Expand All @@ -32,7 +35,8 @@ jobs:
- run: npm audit signatures
- run: npm run build

- run: npx semantic-release
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions src/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const languages = [
['java', [/^import\s+java/gm, 500]],
['asm', [/^(section|global main|extern|\t(call|mov|ret))/gm, 100]],
['css', [/^(@import|@page|@media|(\.|#)[a-z]+)/gm, 20]],
['json', [/\b(true|false|null|\{})\b|\"[a-z]\"+:/g, 10]],
['yaml', [/^(\s+)?[a-z]+:/gm, 10]]
['json', [/\b(true|false|null|\{})\b|\"[^"]+\":/g, 10]],
['yaml', [/^(\s+)?[a-z][a-z0-9]*:/gmi, 10]]
]

/**
Expand Down

0 comments on commit 3d31d33

Please sign in to comment.