Skip to content

Commit 79e1a4b

Browse files
committed
Pkg - Add publish workflow, add keywords to pkg json
1 parent a530fad commit 79e1a4b

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish to NPM
2+
3+
on:
4+
push:
5+
tags: ['v*']
6+
workflow_dispatch:
7+
8+
jobs:
9+
tests-workflow:
10+
uses: ./.github/workflows/tests.yml
11+
publish:
12+
needs: tests-workflow
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
id-token: write
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: '20.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
- uses: pnpm/action-setup@v2
24+
name: Install pnpm
25+
with:
26+
version: 8
27+
run_install: true
28+
- name: Build package
29+
run: pnpm build
30+
- name: Copy README and LICENSE
31+
run: cp README.md LICENSE packages/vue-global-loader
32+
- name: Pack
33+
run: cd packages/vue-global-loader && rm -rf *.tgz && npm pack
34+
- name: Publish
35+
run: cd packages/vue-global-loader && npm publish *.tgz --provenance --access public
36+
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "vue-global-loader/nuxt",
33
"configKey": "globalLoader",
4-
"version": "0.9.0"
4+
"version": "0.9.6"
55
}

packages/vue-global-loader/package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
{
22
"name": "vue-global-loader",
3-
"version": "0.9.0",
3+
"version": "0.9.6",
44
"private": false,
55
"description": "Global loaders made easy for Vue and Nuxt",
6-
"keywords": [],
6+
"keywords": [
7+
"vue",
8+
"vuejs",
9+
"nuxt",
10+
"nuxtjs",
11+
"loading",
12+
"loading-screen",
13+
"loader",
14+
"spinner",
15+
"spinners"
16+
],
717
"homepage": "https://vue-global-loader.pages.dev/",
818
"bugs": {
919
"url": "https://github.com/smastrom/vue-global-loader/issues"

0 commit comments

Comments
 (0)