Skip to content

Commit

Permalink
pub to npm
Browse files Browse the repository at this point in the history
will let cdk pkg pull built files next
  • Loading branch information
nexus-uw committed Dec 11, 2023
1 parent 30e59d1 commit dccbad8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions

name: publish

# Controls when the workflow will run
on:

push:
branches: ['master']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package-lock.json
registry-url: 'https://registry.npmjs.org'


- name: install
run: npm ci
- name: build
run: npm run build
- name: build lambda
run: npm run build-lambda
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit dccbad8

Please sign in to comment.