diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..751b9a2 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,24 @@ +name: NPM Package Publish + +on: + workflow_dispatch: + +jobs: + publish-npm: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - run: bun install + - run: bun run build + - name: Publish to NPM + run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index fce5532..70f1e7e 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,23 @@ "version": "0.0.10", "license": "MIT", "type": "module", + "author": "Jonas Almeida", + "repository": { + "type": "git", + "url": "https://github.com/jonasrafa/kunkun-ext-on-this-day" + }, "kunkun": { "name": "What Happened Today", "shortDescription": "Get the historical events that happened on this day.", "longDescription": "Discover historical events, notable birthdays, and milestones on any date.", "identifier": "kunkun-ext-on-this-day", "permissions": [ - "fetch:all", - "clipboard:read-all" + "fetch:all" + ], + "demoImages": [ + "https://raw.githubusercontent.com/jonasrafa/kunkun-ext-on-this-day/refs/heads/main/public/screenshot1.jpg", + "https://raw.githubusercontent.com/jonasrafa/kunkun-ext-on-this-day/refs/heads/main/public/screenshot2.jpg" ], - "demoImages": [], "icon": { "type": "iconify", "value": "material-symbols:history-rounded"