Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit d5cd925

Browse files
committed
Added workflow
1 parent 0794db0 commit d5cd925

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release NPM
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: '12.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: npm install
18+
# Publish to npm
19+
- run: npm publish --access public
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
{
22
"name": "@flybywiresim/efb",
33
"version": "0.0.1",
4-
"private": true,
4+
"private": false,
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/flybywiresim/efb.git"
8+
},
9+
"files": [
10+
"dist"
11+
],
12+
"main": "dist/Efb.js",
513
"dependencies": {
614
"@flybywiresim/api-client": "^0.2.0",
715
"@flybywiresim/map": "0.0.9",

0 commit comments

Comments
 (0)