Skip to content

Commit

Permalink
ci: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Oct 25, 2022
1 parent 05d6567 commit 7ca0925
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 21 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
name: Release

on: [workflow_dispatch]
on: [ workflow_dispatch ]

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store

jobs:
release:
name: Release
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: pnpm/action-setup@v2.2.2
- name: setup node.js
uses: actions/setup-node@v3
with:
version: 7

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
node-version: 14
- name: install pnpm
run: npm i pnpm@latest -g
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install

- name: Publish to npm
id: changesets
- name: create and publish versions
uses: changesets/action@v1
with:
publish: pnpm ci:release
version: pnpm ci:version
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"changeset": "changeset",
"version-packages": "changeset version && pnpm i",
"build-test": "pnpm build && pnpm test && pnpm typecheck --filter=!./playgrounds/*",
"release": "pnpm run build-test && changeset publish"
"release": "changeset publish",
"ci:publish": "changeset publish",
"ci:version": "changeset version"
},
"keywords": [
"solidjs",
Expand Down

0 comments on commit 7ca0925

Please sign in to comment.