Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nishkohli96 committed Jan 23, 2024
1 parent 6eabbe0 commit 747ba1c
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
name: Node.js CI

on:
push:
branches:
- main
push:

jobs:
check:
name: Prepare release...
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20.10.0
- name: Install Dependencies
run: npm ci
- name: release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public

maybe-release:
name: release
runs-on: ubuntu-latest
needs: [check]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 747ba1c

Please sign in to comment.