From 73a51696d65f4a42f882b984ddde08978fa1ea54 Mon Sep 17 00:00:00 2001 From: lovefields Date: Thu, 1 Jun 2023 08:56:38 +0900 Subject: [PATCH] test: build test --- .github/workflows/npm-publish.yml | 38 ++++++++++++++++--------------- .npmrc | 3 +++ package.json | 2 +- src/module.ts | 2 +- 4 files changed, 25 insertions(+), 20 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index d1d7e4f..49bd24e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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 }} diff --git a/.npmrc b/.npmrc index cf04042..66cd005 100644 --- a/.npmrc +++ b/.npmrc @@ -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 diff --git a/package.json b/package.json index 33cccdd..a8bfd33 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/module.ts b/src/module.ts index c668c85..800f1e4 100644 --- a/src/module.ts +++ b/src/module.ts @@ -1,4 +1,4 @@ -import { defineNuxtModule, addComponentsDir, createResolver, addComponent } from "@nuxt/kit" +import { defineNuxtModule, createResolver, addComponent } from "@nuxt/kit" export default defineNuxtModule({ meta: {