Skip to content

Commit 1cfabef

Browse files
authored
feat: CI to publish artefacts on release
1 parent fa5317c commit 1cfabef

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release Backstage GitHub Plugin
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
validate:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
15+
- run: |
16+
npm i -g yarn
17+
yarn install
18+
yarn tsc
19+
20+
publish-npm:
21+
needs: validate
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: 16
28+
registry-url: https://registry.npmjs.org/
29+
- run: |
30+
yarn install
31+
yarn tsc
32+
yarn build
33+
npm publish
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)