Skip to content

Commit

Permalink
chore: prepare package publish
Browse files Browse the repository at this point in the history
- write publish action
- change package version to v0.1.0-rc.0
  • Loading branch information
Jaewoook committed Jul 12, 2023
1 parent c591b40 commit 7747677
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Publish Package"

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version-file: ".tool-versions"
registry-url: "https://registry.npmjs.org"
- run: yarn instsall --frozen-lockfile
- run: yarn build
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pdfium.js",
"version": "1.0.0",
"version": "0.1.0-rc.0",
"description": "PDFium wrapper library for JavaScript",
"main": "./dist/cjs/index.js",
"types": "./dist/esm/index.d.ts",
Expand Down

0 comments on commit 7747677

Please sign in to comment.