Skip to content

Commit

Permalink
github flow upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmachuca committed Mar 5, 2023
1 parent 2da6cee commit 4439145
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package
name: Node.js Publish Package

on:
push:
branches:
- main
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3.3.0
- uses: actions/setup-node@v3.6.0
with:
node-version: 12
node-version: 16
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3.3.0
- uses: actions/setup-node@v3.6.0
with:
node-version: 12
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Set up NPM authentication
run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
Expand Down

0 comments on commit 4439145

Please sign in to comment.