Skip to content

Commit

Permalink
prep for hyperdrive (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog authored Sep 8, 2022
1 parent 6f11cf3 commit 70baa4d
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 31 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/pr-backdrop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,18 @@ jobs:
lando-versions:
- edge
os:
- ubuntu-20.04
- ubuntu-22.04
node-version:
- '14'
- '16'
steps:
# Install deps and cache
# Eventually it would be great if these steps could live in a separate YAML file
# that could be included in line to avoid code duplication
- name: Checkout code
uses: actions/checkout@v2
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Use Yarn cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
registry-url: https://registry.npmjs.org
cache: yarn
- name: Install Yarn dependencies
run: yarn install --prefer-offline --frozen-lockfile

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-docs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
node-version:
- '14'
- '16'
steps:
# Install deps and cache
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
node-version:
- '14'
- '16'
steps:
# Install deps and cache
- name: Checkout code
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
strategy:
matrix:
os:
- windows-2019
- ubuntu-20.04
- macos-10.15
- windows-2022
- ubuntu-22.04
- macos-12
node-version:
- '14'
- '16'
steps:
# Install deps and cache
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
node-version:
- '14'
- '16'
steps:
# Install deps and cache
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17.6
16
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## IN DEVELOPMENT
## v0.6.0 - [September 8, 2022](https://github.com/lando/backdrop/releases/tag/v0.6.0)

* Hyperdrived

## v0.5.1 - [April 21, 2022](https://github.com/lando/backdrop/releases/tag/v0.5.1)

Expand Down
18 changes: 18 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,24 @@ Now open a pull request and the new tests should run!

For a deeper dive on Leia you can go [here](https://github.com/lando/leia).

## Releasing

To deploy and publish a new version of the package to the `npm` registry you need only [create a release on GitHub](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository). That said, in order to create a release and succesfully publish it to `npm` you will want to make sure:

* You have tagged the commit you want to deploy in `git` and pushed it up to GitHub
* You have bumped the version in your `package.json` so that it doesn't collide with a version already published to `npm`

In order to help with the above we recommend you run the convience command `yarn release` which will take care of both.

Also note that if you create a "pre-release" it will tag the `npm` package with `edge` instead of the default `latest` tag. Also note that while you can toggle the pre-release checkbox after the initial release creation this will not trigger a new release and/or promote the release from `edge` to `latest`. If you want to deploy to `latest` then create a new release without pre-released checked.

```bash
# Will pull the most recent GitHub release
yarn add @lando/backdrop
# Will pull the most recent GitHub pre-release
yarn add @lando/backdrop@edge
```

## Contribution

If you want to contribute code then just follow [this flow](https://guides.github.com/introduction/flow/).
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@
"name": "@lando/backdrop",
"description": "A Lando plugin that provides a tight integration with Backdrop.",
"version": "0.5.1",
"author": "John Ouellet @labboy0276",
"author": "Mike Pirog @pirog",
"license": "GPL-3.0",
"repository": "lando/backdrop",
"bugs": "https://github.com/lando/backdrop/issues/new/choose",
"homepage": "https://github.com/lando/backdrop",
"keywords": [
"lando",
"lando-plugin",
"lando-recipe",
"backdrop"
],
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"bundledDependencies": true,
"lando": {},
"main": "index.js",
"nyc": {
"include": [
Expand All @@ -41,7 +44,6 @@
"test": "yarn lint && yarn test:unit"
},
"dependencies": {
"js-yaml": "^3.4.6",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2798,7 +2798,7 @@ js-yaml@4.1.0, js-yaml@^4.1.0:
dependencies:
argparse "^2.0.1"

js-yaml@^3.13.1, js-yaml@^3.4.6:
js-yaml@^3.13.1:
version "3.14.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537"
integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==
Expand Down

0 comments on commit 70baa4d

Please sign in to comment.