Skip to content

Commit

Permalink
Merge pull request #336 from OpenFn/main-tmp
Browse files Browse the repository at this point in the history
Automate publish
  • Loading branch information
josephjclark authored Aug 1, 2023
2 parents 2f27f78 + fc91458 commit 6335357
Show file tree
Hide file tree
Showing 10 changed files with 368 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ jobs:
workflows:
build_and_test:
jobs:
- test
- test:
filters:
branches:
ignore:
- main
8 changes: 5 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/packages' # Location of package manifests
schedule:
interval: "daily"
interval: 'weekly'
ignore:
- dependency-name: '@types'
24 changes: 21 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
## Any notes for the reviewer ?
## Short Description

A one or two-sentence description of what this PR does.

## Related issue

Fixes #

## Implementation Details

A more detailed breakdown of the changes, including motivations (if not provided in the issue).

## QA Notes

List any considerations/cases/advice for testing/QA here.

## Checklist before requesting a review

- [ ] I have performed a self-review of my code
- [ ] If needed, I've updated the changelog
- [ ] Amber has QA'd this feature
- [ ] I have added unit tests
- [ ] Changesets have been added (if there are production code changes)

## Release branch checklist

If this is a release branch:

- [ ] Ensure versions have been bumped in package.json
- [ ] Run `pnpm install` after bumping versions
- [ ] Ensure tags have been pushed
29 changes: 29 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish

on:
push:
branches: main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '18'
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: pnpm build
- run: pnpm test
- run: pnpm config set "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm publish -r --report-summary --publish-branch main
- run: pnpm run generate-slack-report
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ ts.cache
!.yarn/sdks
!.yarn/versions

pnpm-publish-summary.json

# OS
.DS_Store

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"pack:local": "pnpm run pack && node ./build/pack-local.js",
"install:global": "pnpm build && pnpm run pack && node ./build/install-global.js",
"install:openfnx": "pnpm install:global",
"export": "sh scripts/export.sh"
"export": "sh scripts/export.sh",
"generate-slack-report": "node ./scripts/slack-publish-message.js"
},
"keywords": [],
"author": "Open Function Group",
Expand All @@ -25,5 +26,8 @@
"gunzip-maybe": "^1.4.2",
"rimraf": "^3.0.2",
"tar-stream": "^3.0.0"
},
"dependencies": {
"@slack/web-api": "^6.8.1"
}
}
12 changes: 12 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @openfn/cli

## 0.2.4

### Patch Changes

- Deploy test

## 0.2.3

### Patch Changes

- Deploy test(no diff)

## 0.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/cli",
"version": "0.2.2",
"version": "0.2.4",
"description": "CLI devtools for the openfn toolchain.",
"engines": {
"node": ">=18",
Expand Down
118 changes: 113 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6335357

Please sign in to comment.