Skip to content

Commit

Permalink
build: bump version to 0.0.3
Browse files Browse the repository at this point in the history
Signed-off-by: James Chien <james@numbersprotocol.io>
  • Loading branch information
shc261392 committed Nov 10, 2023
1 parent 5e70c94 commit 17c6ffa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
name: Node.js Package

on:
release:
types: [published]
push:
branches:
- main

jobs:
build:
Expand All @@ -20,20 +21,27 @@ jobs:
- run: npx playwright install
- run: npm run test

publish-gpr:
publish:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check version changes
uses: EndBug/version-check@v2
id: check

- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish

- name: Version update detected
if: steps.check.outputs.changed == 'true'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/test/
custom-elements.json
.npmrc
.DS_Store
# top level source
capture-eye.js
capture-eye.js.map
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@numbersprotocol/capture-eye",
"version": "0.0.2",
"version": "0.0.3",
"description": "Capture Eye widget seamlessly integrates into your website, facilitating secure and transparent provenance display and purchases of digital content directly from the creator",
"main": "capture-eye.js",
"module": "capture-eye.js",
Expand Down

0 comments on commit 17c6ffa

Please sign in to comment.