Skip to content

Commit

Permalink
Fix for output directory permissions error.
Browse files Browse the repository at this point in the history
  • Loading branch information
BadgerHobbs committed Mar 10, 2024
1 parent e0b0ceb commit a41800c
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 389 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/deploy-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Setup d2-diagrams directory
run: |
sudo mkdir /d2-diagrams
sudo chown -R $(whoami) /d2-diagrams
- name: Build with VitePress
env:
BASE_PATH: "/vitepress-plugin-d2/"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ out
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

dist
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ Once you have installed D2, you can check it is working by running the following
d2 --version
```

Depending on where you are running the build process (such as GitHub codespaces) you may need to grand permissions to the `d2-diagram` directory using something like the below command.

```bash
sudo chown codespace:codespace /d2-diagrams/
```

## Installation

First, install the plugin from NPM.
Expand Down
104 changes: 0 additions & 104 deletions dist/config.d.ts

This file was deleted.

68 changes: 0 additions & 68 deletions dist/config.js

This file was deleted.

7 changes: 0 additions & 7 deletions dist/index.d.ts

This file was deleted.

Loading

0 comments on commit a41800c

Please sign in to comment.