Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to only publish the doc on gh-pages without deploying to npm #490

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x # current LTS
cache: npm

- name: Install dependencies
run: npm ci
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,23 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: npm version
run: |
- run: |
git config --global user.name github-actions
git config --global user.email [email protected]
npm version ${{ inputs.version }}
- run: npm version ${{ inputs.version }}
if: inputs.version != 'doconly'
- run: git show HEAD
- name: npm login
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- run: |
npm whoami
- run: npm publish --access=public
npm publish --access=public
if: inputs.version != 'doconly'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push origin master v${{ inputs.version }}
if: inputs.version != 'doconly'
- name: Fetching gh-pages branch
uses: actions/checkout@v4
with:
Expand Down