Skip to content

Commit 102586e

Browse files
committed
Add publish workflow
1 parent 69134e4 commit 102586e

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
packages: write
16+
steps:
17+
- uses: actions/checkout@v3
18+
# Setup .npmrc file to publish to npm
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: '16.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Bump version in package.json
25+
run: npm version "$(git tag --sort=committerdate | tail -1)" --no-git-tag-version
26+
27+
- run: npm install
28+
- run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "quill",
3-
"version": "2.0.0-dev.4",
2+
"name": "quill-mild-blue",
3+
"version": "0.0.1",
44
"description": "Your powerful, rich text editor",
55
"author": "Jason Chen <[email protected]>",
66
"homepage": "http://quilljs.com",

0 commit comments

Comments
 (0)