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
9 changes: 6 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
registry-url: https://registry.npmjs.org/
cache: yarn
- name: Update package.json version
run: |
# Extract version from tag and update package.json
VERSION=${GITHUB_REF#refs/tags/}
jq ".version=\"$VERSION\"" package.json > package.tmp.json
mv package.tmp.json package.json
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
- run: yarn publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on:
push:
branches: [main]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@
/lib
/package-lock.json
/tmp
test/.tmp-ide-schemas
node_modules
oclif.manifest.json
*.tgz

# Generated by `meta init` — examples/ keeps committed reference copies
metacloud.yaml
!examples/**/metacloud.yaml
_metacloud.tf
metacloud.yaml

# Local Terraform state from workspace runs (e.g. meta tfa on _metacloud.tf)
terraform.tfstate
terraform.tfstate.*
Loading
Loading