Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 8edd66c

Browse files
author
TANGUY Antoine
committed
chore: manual publish
1 parent 7b510a4 commit 8edd66c

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
11
name: Publish
2-
3-
on:
4-
workflow_dispatch:
5-
inputs:
6-
version:
7-
description: 'Version major | minor | patch'
8-
required: true
9-
default: 'minor'
2+
on: workflow_dispatch
103
jobs:
114
publish-npm:
125
runs-on: ubuntu-latest
136
steps:
14-
- uses: actions/checkout@v1
15-
- uses: actions/setup-node@v1
16-
- run: yarn install --frozen-lockfile
17-
- name: npm version
18-
run: |
19-
npm version ${{ github.event.inputs.version }} --git-tag-version=false
20-
- uses: EndBug/add-and-commit@v5
7+
- uses: actions/checkout@v2
8+
# Setup .npmrc file to publish to npm
9+
- uses: actions/setup-node@v2
2110
with:
22-
# The arguments for the `git add` command (see the paragraph below for more info)
23-
# Default: '.'
24-
add: '.'
25-
26-
# The name of the user that will be displayed as the author of the commit
27-
# Default: author of the commit that triggered the run
28-
author_name: Release Bot
29-
message: 'Bump version: by ${{github.actor}}'
11+
node-version: '14.x'
12+
- run: yarn install --frozen-lockfile
13+
- run: npm publish
3014
env:
31-
# This is necessary in order to push a commit to the repo
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
33-
34-
- uses: JS-DevTools/npm-publish@v1
35-
with:
36-
token: ${{ secrets.NPM_TOKEN }}
15+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)