Skip to content

Commit cdb92a2

Browse files
authored
Merge pull request #201 from DaveKeehl/release/release-version-1.0.0
Release version 1.0.0
2 parents 7bfe41c + dfa7b27 commit cdb92a2

File tree

106 files changed

+8776
-15834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+8776
-15834
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

.dockerignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
CI:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: 'npm'
19+
20+
- name: Installing dependencies
21+
run: npm ci
22+
23+
- name: Build
24+
run: npm run build -- --filter=svelte-reveal
25+
26+
# - name: Testing
27+
# run: npm run test
28+
29+
# - name: SonarCloud Scan
30+
# uses: sonarsource/sonarcloud-github-action@master
31+
# env:
32+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
34+
# with:
35+
# projectBaseDir: packages/svelte-reveal

.github/workflows/main.yml

Lines changed: 0 additions & 155 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: 'Publish to NPM'
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- main
9+
10+
jobs:
11+
release:
12+
if: github.event.pull_request.merged == true && github.ref == 'refs/heads/main'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: 'npm'
25+
cache-dependency-path: 'package-lock.json'
26+
27+
- name: Installing dependencies
28+
run: npm ci
29+
30+
- name: Building package
31+
run: npm run pack -- --filter=svelte-reveal
32+
33+
- name: Publish to NPM
34+
id: publish
35+
uses: JS-DevTools/npm-publish@v3
36+
with:
37+
token: ${{ secrets.NPM_TOKEN }}
38+
package: ./packages/svelte-reveal/package.json
39+
strategy: upgrade
40+
41+
- name: Get Package Version
42+
id: package-version
43+
uses: martinbeentjes/npm-get-version-action@master
44+
with:
45+
path: 'packages/svelte-reveal'
46+
47+
- name: Extract release notes
48+
id: extract-release-notes
49+
uses: ffurrer2/extract-release-notes@v1
50+
51+
- name: Create new release
52+
id: create-release
53+
uses: actions/create-release@v1
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
with:
57+
tag_name: ${{ steps.package-version.outputs.current-version }}
58+
release_name: ${{ steps.package-version.outputs.current-version }}
59+
draft: false
60+
prerelease: false
61+
body: ${{ steps.extract-release-notes.outputs.release_notes }}
62+
63+
- name: Upload release asset
64+
id: upload-release-asset
65+
uses: actions/upload-release-asset@v1
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
with:
69+
upload_url: ${{ steps.create-release.outputs.upload_url }}
70+
asset_path: ./packages/svelte-reveal/svelte-reveal-${{ steps.publish.outputs.id}}.tgz
71+
asset_name: svelte-reveal-${{ steps.publish.outputs.id}}.tgz
72+
asset_content_type: application/gzip

.gitignore

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,48 @@
1-
.DS_Store
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
27
dist/
3-
node_modules/
4-
svelte-reveal-*.tgz
8+
9+
# testing
510
coverage/
6-
debug.json
11+
12+
# next.js
13+
.next/
14+
out/
15+
build
16+
17+
# misc
18+
.DS_Store
19+
*.pem
20+
svelte-reveal-*.tgz
21+
package/
22+
23+
# debug
24+
debug.json
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
.pnpm-debug.log*
29+
30+
# local env files
31+
.env.local
32+
.env.development.local
33+
.env.test.local
34+
.env.production.local
35+
36+
# turbo
37+
.turbo
38+
39+
# vercel
40+
.vercel
41+
42+
# typescript
43+
*.tsbuildinfo
44+
next-env.d.ts
45+
46+
47+
# turbo
48+
.turbo

0 commit comments

Comments
 (0)