Skip to content

Commit

Permalink
github actions workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
skarim committed Aug 19, 2024
1 parent f6152d8 commit 6c57293
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 145 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish Package to NPM

on:
release:
types: [published]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test

publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
145 changes: 0 additions & 145 deletions tracking-schema.yaml

This file was deleted.

0 comments on commit 6c57293

Please sign in to comment.