Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit d663d6b

Browse files
authored
Merge pull request #63 from C4IROcean/other/3886_migrate_azure_pipeline_to_github_actions
Github actions to release to npmjs on creating a release and build on pr creation & push to master
2 parents 5175614 + 9b3422e commit d663d6b

File tree

3 files changed

+43
-42
lines changed

3 files changed

+43
-42
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build ODP SDK JS
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Setup Node
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: "16.x"
19+
registry-url: "https://registry.npmjs.org"
20+
- name: Install dependencies and build 🔧
21+
run: npm install && npm run build
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release ODP JS SDK to npmjs
2+
3+
on:
4+
release:
5+
types: [created]
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Setup Node
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: "16.x"
16+
registry-url: "https://registry.npmjs.org"
17+
- name: Install dependencies and build 🔧
18+
run: npm install && npm run build
19+
- name: Publish package on NPM 📦
20+
run: npm publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

azure-pipelines.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)