Skip to content

Commit

Permalink
Fix CSS list-style for lists in markdown
Browse files Browse the repository at this point in the history
The reset was overwriting the markdown styles. This is a temp hack until
fixed upstream: denoland/deno_blog#23
  • Loading branch information
rileytomasek committed Oct 12, 2022
1 parent a618534 commit a4775d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ blog({
{ title: "Twitter", url: "https://twitter.com/rileytomasek" },
{ title: "GitHub", url: "https://github.com/rileytomasek" },
],
style: `.markdown-body ul { list-style: disc !important; } .markdown-body ol { list-style: decimal !important; }`,
port: 8012,
});
10 changes: 5 additions & 5 deletions posts/private-npm-docker-github.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ og:image: https://assets.rile.yt/api/post?date=2022-10-05&title=Private%20NPM%20

Follow these steps to use private NPM packages when deploying applications using the [docker/build-push-action]( https://github.com/docker/build-push-action ) GitHub Action.

1. Create an [automation access token](https://docs.npmjs.com/creating-and-viewing-access-tokens) (that doesn't require 2FA)
2. Set it as the `NPM_TOKEN` [action secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets)
3. Add the following to the workflow to create a `.npmrc` file with the token:
- Create an [automation access token](https://docs.npmjs.com/creating-and-viewing-access-tokens) (that doesn't require 2FA)
- Set it as the `NPM_TOKEN` [action secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets)
- Add the following to the workflow to create a `.npmrc` file with the token:

```yaml
- name: Authenticate NPM
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
```
4. Update the build and push step of the workflow
- Update the build and push step of the workflow
```yaml
- name: Build and push
Expand All @@ -27,7 +27,7 @@ Follow these steps to use private NPM packages when deploying applications using
"npmrc=./.npmrc"
```
5. Use the `.npmrc` secret in the Dockerfile to install private packages
- Use the `.npmrc` secret in the Dockerfile to install private packages

```docker
RUN --mount=type=secret,id=npmrc,dst=/app/.npmrc npm install
Expand Down

0 comments on commit a4775d8

Please sign in to comment.