Skip to content

Commit

Permalink
.github: publish.yml: update action versions and node to v20
Browse files Browse the repository at this point in the history
  • Loading branch information
lemke-ethan committed Jul 26, 2024
1 parent 088bb6a commit c0401bd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: publish

# Run when a new Github publish is released
on:
on:
release:
types: [released]

Expand All @@ -10,24 +10,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16'
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install packages
run: npm install

- name: Build project and dependencies
run: npm run build

- name: Run unit tests and generate report
run: npm run test:ci

- name: Publish package
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: "public"
access: "public"

0 comments on commit c0401bd

Please sign in to comment.