Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
27 changes: 27 additions & 0 deletions .github/workflows/release-codmods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Codemods

on:
push:
branches: [master]

jobs:
release:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn validate
- run: yarn test
- run: yarn release:codemods
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g yarn
- run: yarn install --frozen-lockfile
- run: yarn test
env:
Expand Down
2 changes: 1 addition & 1 deletion packages/publisher/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(sinceRef: string, sourcePath: string, targetPath: string) {
await buildPackages();

console.log('Publishing changed packages');
await publishPackages(targetPath, process.env.GITHUB_TOKEN!);
await publishPackages(targetPath, process.env.NPM_TOKEN!);

console.log('Cleaning up temporary directory');
cleanTargetDir(targetPath);
Expand Down
1 change: 0 additions & 1 deletion packages/publisher/src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function publishPackage(
return new Promise<void>((resolve, reject) =>
client.publish(
npmUri,
// npmUri + packageName,
{
metadata,
access,
Expand Down