Skip to content

Commit

Permalink
chore: 🔧 release to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
DerZade committed Mar 25, 2024
1 parent 3563933 commit cd61a07
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@arma-events'

- run: npm ci

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

Expand All @@ -13,13 +16,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@arma-events'
cache: 'npm'

- run: npm ci

- run: npm run build

- run: npm publish
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ Furthermore each font is accompanied by a fallback font that should be displayed
npm i @arma-events/web-fonts
```

> [!IMPORTANT]
> Make sure the `.npmrc` file in your project correctly configures the GitHub package registry for the `@arma-events/`-namespace:
>
> ```
> # .npmrc
> @arma-events:registry=https://npm.pkg.github.com
> ```
## Usage

Simply include the css file, which includes font-faces for all font as well as their fallback fonts:
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@
"build": "node build/index.js",
"fmt": "npx prettier --write ."
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"author": "Jonas Schade <derzade@gmail.com>",
"license": "MIT",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/arma-events/web-fonts.git"
"url": "git+https://github.com/arma-events/web-fonts.git"
},
"devDependencies": {
"@sinclair/typebox": "^0.32.18",
Expand Down

0 comments on commit cd61a07

Please sign in to comment.