Skip to content

Commit

Permalink
Fixed workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
TessavWalstijn committed Feb 9, 2024
1 parent b4f86fb commit b90b852
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 24 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-browser-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Publish browser-agent to npm'

on:
push:
branches: [main]

jobs:
publish:
- name: Publish browser-agent
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: Set correct yarn
run: corepack enable
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn build:test
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
name: 'Publish browser-id to npm'
name: 'Publish browser-agent/collection to npm'

on:
push:
branches: [main]

jobs:
publish:
- name: Publish browser-agent
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: Set correct yarn
run: corepack enable
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn build:test
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
publish:
- name: Publish browser-agent/collection
runs-on: ubuntu-latest
Expand Down

0 comments on commit b90b852

Please sign in to comment.