Skip to content

Commit

Permalink
Update and rename npm-publish.yml to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nclslbrn authored Dec 9, 2023
1 parent e1b9b16 commit 7825624
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 33 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish to GitHub Package Registry

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
registry-url: https://npm.pkg.github.com/
node-version: 14.x
scope: '@nclslbrn'
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
- name: publish
env:
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
npm run deploy
33 changes: 0 additions & 33 deletions .github/workflows/npm-publish.yml

This file was deleted.

0 comments on commit 7825624

Please sign in to comment.