Skip to content

Commit

Permalink
test: build test
Browse files Browse the repository at this point in the history
  • Loading branch information
lovefields committed May 31, 2023
1 parent 7fc7a80 commit 73a5169
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,25 @@
name: Publish

on:
release:
types: [created]
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://npm.pkg.github.com
- run: npm install
- run: npm run prepack
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16.x"
registry-url: https://npm.pkg.github.com
scope: "@octocat"
- run: yarn install
- run: yarn run dev:prepare
- run: yarn run prepack
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
registry=https://registry.npmjs.org/
always-auth=true
shamefully-hoist=true
strict-peer-dependencies=false
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dragon-editor",
"version": "2.0.0",
"version": "2.0.0-beta.1",
"description": "WYSIWYG editor on Nuxt.js",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineNuxtModule, addComponentsDir, createResolver, addComponent } from "@nuxt/kit"
import { defineNuxtModule, createResolver, addComponent } from "@nuxt/kit"

export default defineNuxtModule({
meta: {
Expand Down

0 comments on commit 73a5169

Please sign in to comment.