Skip to content

Commit

Permalink
Update Gh Actions (#6)
Browse files Browse the repository at this point in the history
* chore: update gh actions
  • Loading branch information
niklas-may authored Sep 23, 2023
1 parent 1945f8b commit 680114f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Publish to NPM
name: Pull Request
on:
release:
types: [created]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -11,11 +10,9 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and build 🔧
run: yarn install --frozen-lockfile && yarn build
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run tests
run: yarn test
5 changes: 4 additions & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Test and Publish to NPM
on:
workflow_dispatch:
release:
types: [created]
jobs:
Expand All @@ -23,5 +22,9 @@ jobs:
with:
name: test-results
path: ./test-results.xml
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


0 comments on commit 680114f

Please sign in to comment.