Skip to content

Commit

Permalink
Merge pull request #247 from codeceptjs/fix-no-docs-showing
Browse files Browse the repository at this point in the history
- fix: no docs showing
- fix: CI to publish to npm
- fix: typos
  • Loading branch information
kobenguyent authored Feb 8, 2024
2 parents 57691ff + fcfef33 commit c97af10
Show file tree
Hide file tree
Showing 7 changed files with 847 additions and 878 deletions.
53 changes: 25 additions & 28 deletions .github/workflows/publish-node.js.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Publish
name: Publish npm Package

on:
release:
types: [published]
jobs:
publish:
push:
branches:
- master

jobs:
publish-npm:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.release.target_commitish }}
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: git config --global user.name "GitHub CD bot"
- run: git config --global user.email "[email protected]"
- run: npm version ${{ github.event.release.tag_name }}
- run: npm i
- run: export NODE_OPTIONS=--openssl-legacy-provider && npm run build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

# push the version changes to GitHub
- run: git push
env:
# The secret is passed automatically. Nothing to configure.
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: git config --global user.name "GitHub CD bot"
- run: git config --global user.email "[email protected]"
- name: Install deps
run: npm i
- name: Build the app
run: export NODE_OPTIONS=--openssl-legacy-provider && npm run build
- run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# push the version changes to GitHub
- run: git push
env:
# The secret is passed automatically. Nothing to configure.
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion lib/api/list-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = (req, res) => {
try {
let docData = fs.readFileSync(filePath, 'utf-8');
let params = parser.parse(fn);
actions[action] = {params: params, actionDoc: docData};
actions[action] = { params: params, actionDoc: docData };
} catch (err) {
debug('Error in fetching doc for file content', fn, err);
}
Expand Down
Loading

0 comments on commit c97af10

Please sign in to comment.