Skip to content

Commit 972b0fb

Browse files
author
Phrase
committed
Deploying from phrase/openapi@9615f053
1 parent 08233c8 commit 972b0fb

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# https://help.github.com/en/actions/language-and-framework-guides/publishing-nodejs-packages
2-
name: Package
2+
name: Release
33
on:
4-
release:
5-
types: [created]
4+
push:
5+
tags:
6+
- '*'
67
jobs:
7-
build:
8+
release:
89
runs-on: ubuntu-latest
910
steps:
10-
- uses: actions/checkout@v2
11-
12-
- uses: actions/setup-node@v1
11+
- uses: actions/checkout@v4
12+
- name: Create GitHub Release
13+
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # [email protected]
14+
with:
15+
tag: ${{github.event.release.tag_name}}
16+
- uses: actions/setup-node@v4
1317
with:
14-
node-version: '12.x'
18+
node-version: '18'
1519
registry-url: 'https://registry.npmjs.org/'
1620
- run: npm install
1721
- run: npm publish --access public

0 commit comments

Comments
 (0)