Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update to be Stacks.js v7 compatible #389

Merged
merged 10 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@ encryptContent('my data')
For details refer to issue #123

## Type of Change

- [ ] New feature
- [ ] Bug fix
- [ ] API reference/documentation update
- [ ] Other

## Does this introduce a breaking change?

List the APIs or describe the functionality that this PR breaks.
Workarounds for or expected timeline for deprecation

## Are documentation updates required?
<!--

<!--
DOCUMENTATION
Consider if this PR makes changes that require documentation updates:
- API changes
Expand All @@ -43,7 +46,8 @@ Workarounds for or expected timeline for deprecation

The best way to find these is by searching inside the docs at https://github.com/blockstack/docs
-->
- [ ] Link to documentation updates:

- [ ] Link to documentation updates:

## Testing information

Expand All @@ -56,8 +60,8 @@ Provide context on how tests should be performed.
5. Things to watch out for when testing

## Checklist

- [ ] Code is commented where needed
- [ ] Unit test coverage for new or modified code paths
- [ ] `yarn lerna run test` passes
- [ ] Changelog is updated
- [ ] Tag 1 of @hstove or @kyranjamie or @aulneau for review
- [ ] Tag @janniks for review
16 changes: 8 additions & 8 deletions .github/actions/code-checks/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: 'Code Checks'
description: 'Run tests, linting, and other common jobs'
name: "Code Checks"
description: "Run tests, linting, and other common jobs"
runs:
using: 'composite'
using: "composite"
steps:
- name: Install yarn dependencies
run: yarn --frozen-lockfile
- name: Install dependencies
run: npm ci
shell: bash
- name: Lint
run: yarn lint
run: npm run lint
shell: bash
- name: Generate types
run: yarn types
run: npm run types
shell: bash
- name: Typecheck
run: yarn typecheck
run: npm run typecheck
shell: bash
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish
on:
push:
branches:
- "main"
- 'main'
workflow_dispatch:

jobs:
Expand All @@ -18,13 +18,13 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
node-version: '18'
cache: 'npm'
- name: Install monorepo deps
run: yarn --frozen-lockfile
run: npm ci
- name: Setup .npmrc
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: yarn lerna publish from-package --yes
run: npx lerna publish from-package --yes
12 changes: 6 additions & 6 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
node-version: '18'
cache: 'npm'
- name: Code Checks
uses: ./.github/actions/code-checks

Expand All @@ -53,10 +53,10 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
node-version: '18'
cache: 'npm'
- name: Install monorepo deps
run: yarn --frozen-lockfile
run: npm ci
- name: Setup .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -80,7 +80,7 @@ jobs:
env:
BRANCH: ${{ steps.git-branch.outputs.branch }}
SHA: ${{ steps.git-commit.outputs.sha }}
run: yarn lerna publish prepatch --preid alpha.$SHA --dist-tag $BRANCH --yes --no-push
run: npx lerna publish prepatch --preid alpha.$SHA --dist-tag $BRANCH --yes --no-push
- name: Get alpha package versions
id: alpha
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Version
on:
push:
branches:
- "main"
- 'main'
workflow_dispatch:

env:
Expand All @@ -20,8 +20,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
node-version: '18'
cache: 'npm'
- name: Code Checks
uses: ./.github/actions/code-checks

Expand All @@ -35,14 +35,14 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: yarn --frozen-lockfile
run: npm ci
- name: Create Release Pull Request
uses: changesets/action@e9cc34b540dd3ad1b030c57fd97269e8f6ad905a
with:
title: "chore: version packages"
commit: "chore: version packages"
title: 'chore: version packages'
commit: 'chore: version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"packages": ["packages/*"],
"version": "independent",
"npmClient": "yarn",
"command": {
"version": {
"message": "chore(release): publish %s"
Expand Down
Loading
Loading