Skip to content

Commit

Permalink
fix: package info
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburnell committed Aug 5, 2024
1 parent b9da449 commit a898fc1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 19
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install
- run: |
TAG=$(echo $GITHUB_REF_NAME | grep -oP '^v\d+\.\d+\.\d+-?\K(\w+)?')
npm publish --provenance --access=public --tag ${TAG:-latest}
- if: ${{ github.event.release.tag_name != '' && env.NPM_PUBLISH_TAG != '' }}
run: npm publish --provenance --access=public --tag=${{ env.NPM_PUBLISH_TAG }}
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NPM_PUBLISH_TAG: ${{ contains(github.event.release.tag_name, '-beta.') && 'beta' || contains(github.event.release.tag_name, '-alpha.') && 'canary' || 'latest' }}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.github
.gitattributes
.vscode
.editorconfig
.eslintrc.json
.prettierrc
24 changes: 19 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chrisburnell/eleventy-cache-webmentions",
"version": "2.1.1",
"version": "2.1.2",
"description": "Cache webmentions using eleventy-fetch and make them available to use in collections, layouts, pages, etc. in Eleventy.",
"license": "MIT",
"repository": {
Expand All @@ -11,17 +11,31 @@
"bugs": {
"url": "https://github.com/chrisburnell/eleventy-cache-webmentions/issues"
},
"author": "Chris Burnell <me@chrisburnell.com>",
"author": {
"name": "Chris Burnell",
"email": "me@chrisburnell.com",
"url": "https://chrisburnell.com/"
},
"contributors": [
{
"name": "Chris Burnell",
"email": "me@chrisburnell.com",
"url": "https://chrisburnell.com",
"mastodon": "@chrisburnell@repc.co"
"url": "https://chrisburnell.com"
}
],
"funding": [
{
"type": "buymeacoffee",
"url": "https://buymeacoffee.com/chrisburnell"
},
{
"type": "github",
"url": "https://github.com/sponsors/chrisburnell"
}
],
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},
"main": "eleventy-cache-webmentions.js",
"scripts": {
Expand Down

0 comments on commit a898fc1

Please sign in to comment.