Skip to content

Commit

Permalink
Fix/workflows (#1001)
Browse files Browse the repository at this point in the history
* fix: reverting workflows

* chore: package.lock

* 3.1.6

* chore: aligning version

* 3.1.8
  • Loading branch information
eikeland authored Feb 22, 2024
1 parent 8b2a99b commit ea22eb5
Show file tree
Hide file tree
Showing 6 changed files with 18,858 additions and 10,947 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup node and install deps
uses: ./.github/workflows/actions/node-setup

- name: Build project
run:
pnpm run build
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: |
npm ci --legacy-peer-deps
npm run build
33 changes: 19 additions & 14 deletions .github/workflows/prePublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,25 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup node and install deps
uses: ./.github/workflows/actions/node-setup
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
registry-url: https://registry.npmjs.org

- name: pnpm build
run:
pnpm run build
- name: npm install, update version.ts, run tsc
run: |
npm ci --legacy-peer-deps
npm run update-templates
npm run build
- name: pnpm publish
run: pnpm publish --access public --tag next
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: npm publish
run: npm publish --access public --tag next
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
35 changes: 19 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@ jobs:
build:
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup node and install deps
uses: ./.github/workflows/actions/node-setup
- name: pnpm build and publish
run: |
pnpm run update-templates
pnpm run build
pnpm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
pnpm publish --access public
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
registry-url: https://registry.npmjs.org
- name: npm build and publish
run: |
npm ci --legacy-peer-deps
npm run update-templates
npm run build
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish --access public
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Loading

0 comments on commit ea22eb5

Please sign in to comment.