Skip to content

Commit dd1b446

Browse files
committed
chore: add publish workflow
1 parent 89780cb commit dd1b446

File tree

4 files changed

+54
-1427
lines changed

4 files changed

+54
-1427
lines changed

.github/workflows/NpmPublish.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: publish
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
release:
8+
name: check version, and release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v3
13+
- name: setup Node
14+
uses: actions/setup-node@v3
15+
with:
16+
registry-url: 'https://registry.npmjs.org'
17+
- name: Install Packages
18+
run: yarn
19+
- name: Build
20+
run: yarn build
21+
- name: check can npm-publish
22+
run: npx can-npm-publish
23+
- name: release
24+
run: yarn publish
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_ORG_TOKEN }}

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"opener": "^1.5.1",
5555
"prettier": "^2.0.5",
5656
"rimraf": "^3.0.0",
57-
"shipjs": "^0.23.0",
5857
"svelte": "^3.37.0",
5958
"ts-node": "^9.0.0",
6059
"typescript": "^4.0.0",
@@ -95,8 +94,6 @@
9594
"lint": "eslint . --ext js,ts,vue,md --ignore-pattern \"/tests/fixtures\"",
9695
"lint:docs": "prettier docs --check",
9796
"format:docs": "prettier docs --write",
98-
"release:prepare": "shipjs prepare",
99-
"release:trigger": "shipjs trigger",
10097
"test": "mocha --require ts-node/register \"./tests/**/*.ts\"",
10198
"test:debug": "mocha --require ts-node/register/transpile-only \"./tests/**/*.ts\"",
10299
"test:coverage": "nyc mocha --require ts-node/register \"./tests/**/*.ts\" --timeout 60000",

ship.config.js

-71
This file was deleted.

0 commit comments

Comments
 (0)