Skip to content

Commit

Permalink
build(Github-Actions): Remove workflow dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
alexalexandrescu committed Oct 9, 2023
1 parent 601c012 commit cc8b2a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
jobs:
version_and_release:
runs-on: ubuntu-latest
needs: build_and_test
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
Expand All @@ -19,15 +18,22 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "npm"

- name: Install dependencies
run: npm clean-install

- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures

- name: Test
run: npm test

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Test

on:
push:
branches:
- main
[push, pull_request]

jobs:
build_and_test:
Expand Down

0 comments on commit cc8b2a8

Please sign in to comment.