mirror of https://github.com/coder/code-server.git
fix(workflows): docs-preview and npm job (#5042)
* fix(ci): add GITHUB_TOKEN to docs-preview workflow * feat(ci): comment npm dev build instructions on PR
This commit is contained in:
parent
06e36b42bb
commit
5341294d2d
|
@ -217,6 +217,26 @@ jobs:
|
||||||
# Instead, itis determined in publish-npm.sh script
|
# Instead, itis determined in publish-npm.sh script
|
||||||
# using GITHUB environment variables
|
# using GITHUB environment variables
|
||||||
|
|
||||||
|
- name: Comment npm information
|
||||||
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
header: npm-dev-build
|
||||||
|
message: |
|
||||||
|
✨ code-server dev build published to npm for PR #${{ github.event.number }}!
|
||||||
|
* _Last publish status_: success
|
||||||
|
* _Commit_: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
|
To install in a local project, run:
|
||||||
|
```shell-session
|
||||||
|
npm install @coder/code-server-pr@${{ github.event.number }}
|
||||||
|
```
|
||||||
|
|
||||||
|
To install globally, run:
|
||||||
|
```shell-session
|
||||||
|
npm install -g @coder/code-server-pr@${{ github.event.number }}
|
||||||
|
```
|
||||||
|
|
||||||
# TODO: cache building yarn --production
|
# TODO: cache building yarn --production
|
||||||
# possibly 2m30s of savings(?)
|
# possibly 2m30s of savings(?)
|
||||||
# this requires refactoring our release scripts
|
# this requires refactoring our release scripts
|
||||||
|
|
|
@ -31,6 +31,7 @@ jobs:
|
||||||
- name: Comment Credentials
|
- name: Comment Credentials
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
header: codercom-preview-docs
|
header: codercom-preview-docs
|
||||||
message: |
|
message: |
|
||||||
✨ code-server docs for PR #${{ github.event.number }} is ready! It will be updated on every commit.
|
✨ code-server docs for PR #${{ github.event.number }} is ready! It will be updated on every commit.
|
||||||
|
|
Loading…
Reference in New Issue