Skip to content

Commit

Permalink
Merge pull request #18 from contentstack/fix/hasOwnProperty_of_undefined
Browse files Browse the repository at this point in the history
fix: resolved undefined method issue
  • Loading branch information
abhinav-from-contentstack authored Feb 2, 2023
2 parents 7c91895 + 3200c89 commit 81fa6af
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 1,975 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "16.x"
- run: npm install

- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: install npm packall
run: npm install npm-pack-all

- run: node node_modules/.bin/npm-pack-all
- uses: Klemensas/action-autotag@stable
id: update_tag
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
tag_prefix: "v"
- name: Create Release
if: steps.update_tag.outputs.tagname
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.update_tag.outputs.tagname }}
release_name: Release ${{ steps.update_tag.outputs.tagname }}
draft: false # Default value, but nice to set explicitly
prerelease: false # Default value, but nice to set explicitly
- name: Upload Release Asset
if: steps.update_tag.outputs.tagname
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 }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./datasync-filesystem-sdk-${{ steps.package-version.outputs.current-version }}.tgz
asset_name: datasync-filesystem-sdk-${{ steps.package-version.outputs.current-version }}.tgz
asset_content_type: application/tgz
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ example/**/*
!example/index.js

# Misc
_old_test_backup
_old_test_backup

#dist
dist
2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fileignoreconfig:
- filename: package-lock.json
checksum: 468024730599b0ddf6db45cd7aeb808ed9dd79cf9f9392f6e801e4c269f511c2
checksum: d86ac5add96a781c3f2df86ee68fc010168aa6cc4cbf1d1ee6d63067a0f1b3e2
version: ""
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Contentstack
Copyright (c) 2023 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
35 changes: 0 additions & 35 deletions dist/config.js

This file was deleted.

31 changes: 0 additions & 31 deletions dist/fs.js

This file was deleted.

42 changes: 0 additions & 42 deletions dist/index.js

This file was deleted.

Loading

0 comments on commit 81fa6af

Please sign in to comment.