Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal committed Aug 31, 2023
2 parents 7189e69 + 8204a49 commit 14cad2c
Show file tree
Hide file tree
Showing 13 changed files with 973 additions and 2,047 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/alpha-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,19 @@ jobs:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
run: npm whoami

- name: Generate alpha version string and modify packages
- name: Install dependencies
run: npm ci

- name: Generate alpha prerelease and bump package.json @web5/* versions
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
run: |
SHORT_COMMIT_SHA=$(git rev-parse --short HEAD)
YYYYMMDD=$(date +'%Y%m%d')
for dir in packages/*; do
cd $dir
REPO_VERSION=$(node -p "require('./package.json').version")
ALPHA_VERSION="${REPO_VERSION}-alpha-$YYYYMMDD-$SHORT_COMMIT_SHA"
npm version $ALPHA_VERSION --no-git-tag-version
cd ../..
done
ALPHA_PRERELEASE="alpha-$YYYYMMDD-$SHORT_COMMIT_SHA"
node ./scripts/bump-workspace.mjs --prerelease=$ALPHA_PRERELEASE
shell: bash

- name: Bump package.json @web5/* dependency versions
run: node ./scripts/bump-workspace.mjs

- name: Install dependencies
run: npm ci

- name: Build all workspace packages
run: npm run build

Expand Down
Loading

0 comments on commit 14cad2c

Please sign in to comment.