Skip to content

Commit

Permalink
Merge pull request #201 from DaveKeehl/release/release-version-1.0.0
Browse files Browse the repository at this point in the history
Release version 1.0.0
  • Loading branch information
DaveKeehl authored Apr 4, 2024
2 parents 7bfe41c + dfa7b27 commit cdb92a2
Show file tree
Hide file tree
Showing 106 changed files with 8,776 additions and 15,834 deletions.
32 changes: 0 additions & 32 deletions .devcontainer/devcontainer.json

This file was deleted.

6 changes: 0 additions & 6 deletions .dockerignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

23 changes: 0 additions & 23 deletions .eslintrc

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on: [push, pull_request]

jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Installing dependencies
run: npm ci

- name: Build
run: npm run build -- --filter=svelte-reveal

# - name: Testing
# run: npm run test

# - name: SonarCloud Scan
# uses: sonarsource/sonarcloud-github-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# with:
# projectBaseDir: packages/svelte-reveal
155 changes: 0 additions & 155 deletions .github/workflows/main.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: 'Publish to NPM'

on:
pull_request:
types:
- closed
branches:
- main

jobs:
release:
if: github.event.pull_request.merged == true && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'package-lock.json'

- name: Installing dependencies
run: npm ci

- name: Building package
run: npm run pack -- --filter=svelte-reveal

- name: Publish to NPM
id: publish
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/svelte-reveal/package.json
strategy: upgrade

- name: Get Package Version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
with:
path: 'packages/svelte-reveal'

- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1

- name: Create new release
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.package-version.outputs.current-version }}
release_name: ${{ steps.package-version.outputs.current-version }}
draft: false
prerelease: false
body: ${{ steps.extract-release-notes.outputs.release_notes }}

- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ./packages/svelte-reveal/svelte-reveal-${{ steps.publish.outputs.id}}.tgz
asset_name: svelte-reveal-${{ steps.publish.outputs.id}}.tgz
asset_content_type: application/gzip
50 changes: 46 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,48 @@
.DS_Store
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
.pnp
.pnp.js
dist/
node_modules/
svelte-reveal-*.tgz

# testing
coverage/
debug.json

# next.js
.next/
out/
build

# misc
.DS_Store
*.pem
svelte-reveal-*.tgz
package/

# debug
debug.json
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# turbo
.turbo

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts


# turbo
.turbo
Loading

0 comments on commit cdb92a2

Please sign in to comment.