Skip to content

Commit

Permalink
Update npm-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
garris authored Feb 23, 2024
1 parent e353fdb commit ef2bdd0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/npm-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,32 @@ on:
workflow_dispatch:
workflow_call:

permissions:
actions: write
checks: write
contents: write
pull-requests: write
packages: write

env:
BRANCH_NAME: ${{ github.event.pull_request.head.sha || github.head_ref || github.ref_name }}
NODE_VERSION: 20

jobs:
publish:
runs-on: ubuntu-latest
steps:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- uses: actions/setup-node@v3

- name: Setup Node & Cache
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: package-lock.json

- run: npm ci

Expand Down

0 comments on commit ef2bdd0

Please sign in to comment.